<?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 ContextMenuGroup
 * The context menu group
 */
final class ContextMenuGroupEnum implements EnumInterface
{
    public const ROOT = 'ROOT';
    public const HARDWARE = 'HARDWARE';
    public const DISKS = 'DISKS';
    public const PROCESSORS = 'PROCESSORS';
    public const MEMORY = 'MEMORY';
    public const MODULES = 'MODULES';
    public const SOFTWARE = 'SOFTWARE';
    public const CONNECT_WITH = 'CONNECT_WITH';
    public const VIRTUALIZATION = 'VIRTUALIZATION';
    public const NETWORK = 'NETWORK';
    public string $value;
    private static array $map = [
        self::ROOT => true,
        self::HARDWARE => true,
        self::DISKS => true,
        self::PROCESSORS => true,
        self::MEMORY => true,
        self::MODULES => true,
        self::SOFTWARE => true,
        self::CONNECT_WITH => true,
        self::VIRTUALIZATION => true,
        self::NETWORK => 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;
    }
}