<?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 JwtAudienceType
 * Type of JWT to generate. API to be used for scripts, and UI for the browser client with WebSocket keep-alive feature
 */
final class JwtAudienceTypeEnum implements EnumInterface
{
    public const API = 'API';
    public const UI = 'UI';
    public const SECURED = 'SECURED';
    public string $value;
    private static array $map = [
        self::API => true,
        self::UI => true,
        self::SECURED => 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;
    }
}