<?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 WlanPhyType
 * The Wlan Phy Types
 */
final class WlanPhyTypeEnum implements EnumInterface
{
    public const Unknown = 'Unknown';
    public const Fhss = 'Fhss';
    public const Dss = 'Dss';
    public const Irbaseband = 'Irbaseband';
    public const Ofdm = 'Ofdm';
    public const Hrdsss = 'Hrdsss';
    public const Erp = 'Erp';
    public const Ht = 'Ht';
    public const Vt = 'Vt';
    public const ieee80211na = 'ieee80211na';
    public const ieee80211ng = 'ieee80211ng';
    public string $value;
    private static array $map = [
        self::Unknown => true,
        self::Fhss => true,
        self::Dss => true,
        self::Irbaseband => true,
        self::Ofdm => true,
        self::Hrdsss => true,
        self::Erp => true,
        self::Ht => true,
        self::Vt => true,
        self::ieee80211na => true,
        self::ieee80211ng => 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;
    }
}