<?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 FilterConditionType
 * A filter condition type defines the match condition of a filter field value to filter field
 */
final class FilterConditionTypeEnum implements EnumInterface
{
    public const EQUALS = 'EQUALS';
    public const CONTAINS = 'CONTAINS';
    public const NOT_CONTAINS = 'NOT_CONTAINS';
    public const STARTS_WITH = 'STARTS_WITH';
    public const LT_EQUAL = 'LT_EQUAL';
    public const GT_EQUAL = 'GT_EQUAL';
    public const LT = 'LT';
    public const GT = 'GT';
    public const NOT_EQUAL = 'NOT_EQUAL';
    public const NOT_SET = 'NOT_SET';
    public string $value;
    private static array $map = [
        self::EQUALS => true,
        self::CONTAINS => true,
        self::NOT_CONTAINS => true,
        self::STARTS_WITH => true,
        self::LT_EQUAL => true,
        self::GT_EQUAL => true,
        self::LT => true,
        self::GT => true,
        self::NOT_EQUAL => true,
        self::NOT_SET => 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;
    }
}