<?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 WlanAuthAlgorithm
 * The Wlan Auth Algorithms
 */
final class WlanAuthAlgorithmEnum implements EnumInterface
{
    public const Ieee80211Unknown = 'Ieee80211Unknown';
    public const Ieee80211Open = 'Ieee80211Open';
    public const SharedKey = 'SharedKey';
    public const Wpa = 'Wpa';
    public const WpaPsk = 'WpaPsk';
    public const WpaNone = 'WpaNone';
    public const Rsna = 'Rsna';
    public const RsnaPsk = 'RsnaPsk';
    public const Unknown = 'Unknown';
    public const Wep = 'Wep';
    public const Wpa3 = 'Wpa3';
    public const Wpa3Sae = 'Wpa3Sae';
    public const Owe = 'Owe';
    public string $value;
    private static array $map = [
        self::Ieee80211Unknown => true,
        self::Ieee80211Open => true,
        self::SharedKey => true,
        self::Wpa => true,
        self::WpaPsk => true,
        self::WpaNone => true,
        self::Rsna => true,
        self::RsnaPsk => true,
        self::Unknown => true,
        self::Wep => true,
        self::Wpa3 => true,
        self::Wpa3Sae => true,
        self::Owe => 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;
    }
}