<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 Operator
 * The possible operators for data field filters
 */
final class OperatorEnum implements EnumInterface
{
    public const None = 'None';
    public const NotSet = 'NotSet';
    public const Empty = 'Empty';
    public const Greater = 'Greater';
    public const GreaterEqual = 'GreaterEqual';
    public const Less = 'Less';
    public const LessEqual = 'LessEqual';
    public const Between = 'Between';
    public const Equal = 'Equal';
    public const NotEqual = 'NotEqual';
    public const StringSubstring = 'StringSubstring';
    public const NotStringSubstring = 'NotStringSubstring';
    public const StringSubstringInsensitive = 'StringSubstringInsensitive';
    public const NotStringSubstringInsensitive = 'NotStringSubstringInsensitive';
    public const StringRegexMatch = 'StringRegexMatch';
    public const NotStringRegexMatch = 'NotStringRegexMatch';
    public const StringWildcardMatch = 'StringWildcardMatch';
    public const NotStringWildcardMatch = 'NotStringWildcardMatch';
    public const ContainedInIP4Network = 'ContainedInIP4Network';
    public const ContainedInIP4Range = 'ContainedInIP4Range';
    public const EqualsInsensitive = 'EqualsInsensitive';
    public const AgeGreater = 'AgeGreater';
    public const AgeGreaterEqual = 'AgeGreaterEqual';
    public const AgeLess = 'AgeLess';
    public const AgeLessEqual = 'AgeLessEqual';
    public const AgeBetween = 'AgeBetween';
    public const AgeEqual = 'AgeEqual';
    public const AgeNotEqual = 'AgeNotEqual';
    public string $value;
    private static array $map = [
        self::None => true,
        self::NotSet => true,
        self::Empty => true,
        self::Greater => true,
        self::GreaterEqual => true,
        self::Less => true,
        self::LessEqual => true,
        self::Between => true,
        self::Equal => true,
        self::NotEqual => true,
        self::StringSubstring => true,
        self::NotStringSubstring => true,
        self::StringSubstringInsensitive => true,
        self::NotStringSubstringInsensitive => true,
        self::StringRegexMatch => true,
        self::NotStringRegexMatch => true,
        self::StringWildcardMatch => true,
        self::NotStringWildcardMatch => true,
        self::ContainedInIP4Network => true,
        self::ContainedInIP4Range => true,
        self::EqualsInsensitive => true,
        self::AgeGreater => true,
        self::AgeGreaterEqual => true,
        self::AgeLess => true,
        self::AgeLessEqual => true,
        self::AgeBetween => true,
        self::AgeEqual => true,
        self::AgeNotEqual => 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;
    }
}