<?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 LicenseStatus
 * The license status
 */
final class LicenseStatusEnum implements EnumInterface
{
    public const VALID = 'VALID';
    public const INVALID = 'INVALID';
    public const INVALID_SIGNATURE = 'INVALID_SIGNATURE';
    public const MACHINE_DATA_MISMATCH = 'MACHINE_DATA_MISMATCH';
    public const INVALID_DATE = 'INVALID_DATE';
    public const BEFORE_START_DATE = 'BEFORE_START_DATE';
    public const PAST_END_DATE = 'PAST_END_DATE';
    public const PRODUCT_NAME_MISMATCH = 'PRODUCT_NAME_MISMATCH';
    public const PRODUCT_VERSION_MISMATCH = 'PRODUCT_VERSION_MISMATCH';
    public string $value;
    private static array $map = [
        self::VALID => true,
        self::INVALID => true,
        self::INVALID_SIGNATURE => true,
        self::MACHINE_DATA_MISMATCH => true,
        self::INVALID_DATE => true,
        self::BEFORE_START_DATE => true,
        self::PAST_END_DATE => true,
        self::PRODUCT_NAME_MISMATCH => true,
        self::PRODUCT_VERSION_MISMATCH => 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;
    }
}