<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Generator\Exception\UnknownEnumValue;
use Axtiva\FlexibleGraphql\Type\EnumInterface;

/**
 * This code is @generated by axtiva/flexible-graphql-php
 * and will be regenerated. Do not edit it manually
 * PHP representation of graphql enum MeasureAggregateKind
 * The Measure Aggregate Kinds
 */
final class MeasureAggregateKindEnum implements EnumInterface
{
    public const UNKNOWN = 'UNKNOWN';
    public const DEVICE = 'DEVICE';
    public const PROVISION = 'PROVISION';
    public const EVENT = 'EVENT';
    public const SNAPSHOT = 'SNAPSHOT';
    public string $value;
    private static array $map = [
        self::UNKNOWN => true,
        self::DEVICE => true,
        self::PROVISION => true,
        self::EVENT => true,
        self::SNAPSHOT => true,
    ];

    public function __construct($value)
    {
        if (!isset(self::$map[$value])) {
            throw new UnknownEnumValue(__CLASS__, $value);
        }
        $this->value = $value;
    }

    public function __toString(): string
    {
        return $this->value;
    }
}