<?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 AddOnProduct
 * The available Add-On products
 */
final class AddOnProductEnum implements EnumInterface
{
    public const WEB_SERVICE_ADD_ON = 'WEB_SERVICE_ADD_ON';
    public const DEPENDENCY_MAPPING = 'DEPENDENCY_MAPPING';
    public const NETWORKING = 'NETWORKING';
    public const HISTORY = 'HISTORY';
    public const SECURITY = 'SECURITY';
    public const SHI = 'SHI';
    public const MEASUREMENT = 'MEASUREMENT';
    public const WEBUI = 'WEBUI';
    public string $value;
    private static array $map = [
        self::WEB_SERVICE_ADD_ON => true,
        self::DEPENDENCY_MAPPING => true,
        self::NETWORKING => true,
        self::HISTORY => true,
        self::SECURITY => true,
        self::SHI => true,
        self::MEASUREMENT => true,
        self::WEBUI => 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;
    }
}