<?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 AceBITPasswordDepotItemClassType
 * The AceBIT Password Depot Itemclass type
 */
final class AceBITPasswordDepotItemClassTypeEnum implements EnumInterface
{
    public const FOLDER = 'FOLDER';
    public const PASSWORD = 'PASSWORD';
    public const CREDIT = 'CREDIT';
    public const LICENSE = 'LICENSE';
    public const IDENTITY = 'IDENTITY';
    public const INFORMATION = 'INFORMATION';
    public const CARD = 'CARD';
    public const FILE = 'FILE';
    public const DOCUMENT = 'DOCUMENT';
    public const RDP = 'RDP';
    public const PUTTY = 'PUTTY';
    public const TEAMVIEWER = 'TEAMVIEWER';
    public string $value;
    private static array $map = [
        self::FOLDER => true,
        self::PASSWORD => true,
        self::CREDIT => true,
        self::LICENSE => true,
        self::IDENTITY => true,
        self::INFORMATION => true,
        self::CARD => true,
        self::FILE => true,
        self::DOCUMENT => true,
        self::RDP => true,
        self::PUTTY => true,
        self::TEAMVIEWER => 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;
    }
}