<?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 DiscoveryCategory
 */
final class DiscoveryCategoryEnum implements EnumInterface
{
    public const GeneralInfo = 'GeneralInfo';
    public const MemoryModule = 'MemoryModule';
    public const Processor = 'Processor';
    public const PhysicalDisk = 'PhysicalDisk';
    public const OperatingSystem = 'OperatingSystem';
    public const Application = 'Application';
    public const Patch = 'Patch';
    public const Service = 'Service';
    public const LogicalDisk = 'LogicalDisk';
    public const DiskPartition = 'DiskPartition';
    public const ExecutableFile = 'ExecutableFile';
    public const VideoController = 'VideoController';
    public const MappedPrinter = 'MappedPrinter';
    public const TpmModule = 'TpmModule';
    public const SystemBoard = 'SystemBoard';
    public const SoundCard = 'SoundCard';
    public const Firmware = 'Firmware';
    public const Driver = 'Driver';
    public string $value;
    private static array $map = [
        self::GeneralInfo => true,
        self::MemoryModule => true,
        self::Processor => true,
        self::PhysicalDisk => true,
        self::OperatingSystem => true,
        self::Application => true,
        self::Patch => true,
        self::Service => true,
        self::LogicalDisk => true,
        self::DiskPartition => true,
        self::ExecutableFile => true,
        self::VideoController => true,
        self::MappedPrinter => true,
        self::TpmModule => true,
        self::SystemBoard => true,
        self::SoundCard => true,
        self::Firmware => true,
        self::Driver => 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;
    }
}