<?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 DeviceGroupMatchType
 * The device group match type
 */
final class DeviceGroupMatchTypeEnum implements EnumInterface
{
    public const Contains = 'Contains';
    public const ContainsInsensitive = 'ContainsInsensitive';
    public const MatchesSimpleWildcards = 'MatchesSimpleWildcards';
    public const MatchesRegularExpression = 'MatchesRegularExpression';
    public const Equals = 'Equals';
    public const Greater = 'Greater';
    public const GreaterOrEqual = 'GreaterOrEqual';
    public const Less = 'Less';
    public const LessOrEqual = 'LessOrEqual';
    public const NotEqual = 'NotEqual';
    public const Between = 'Between';
    public const NotSet = 'NotSet';
    public const Empty = 'Empty';
    public const NotContains = 'NotContains';
    public const NotContainsInsensitive = 'NotContainsInsensitive';
    public const NotMatchesRegularExpression = 'NotMatchesRegularExpression';
    public const NotMatchesSimpleWildcards = 'NotMatchesSimpleWildcards';
    public const EqualsInsensitive = 'EqualsInsensitive';
    public string $value;
    private static array $map = [
        self::Contains => true,
        self::ContainsInsensitive => true,
        self::MatchesSimpleWildcards => true,
        self::MatchesRegularExpression => true,
        self::Equals => true,
        self::Greater => true,
        self::GreaterOrEqual => true,
        self::Less => true,
        self::LessOrEqual => true,
        self::NotEqual => true,
        self::Between => true,
        self::NotSet => true,
        self::Empty => true,
        self::NotContains => true,
        self::NotContainsInsensitive => true,
        self::NotMatchesRegularExpression => true,
        self::NotMatchesSimpleWildcards => true,
        self::EqualsInsensitive => 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;
    }
}