<?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 DiscoveryJobLogsScope
 * Enumeration for the scope of discovery log
 */
final class DiscoveryJobLogsScopeEnum implements EnumInterface
{
    public const SCOPE_CONFIG = 'SCOPE_CONFIG';
    public const SCOPE_IP4PING = 'SCOPE_IP4PING';
    public const SCOPE_DIRECTORY = 'SCOPE_DIRECTORY';
    public const SCOPE_DIRECTORY_SYNC = 'SCOPE_DIRECTORY_SYNC';
    public const SCOPE_NETWORK_SYNC = 'SCOPE_NETWORK_SYNC';
    public const SCOPE_NETWORK_NEIGHBORHOOD = 'SCOPE_NETWORK_NEIGHBORHOOD';
    public const SCOPE_CLOUD = 'SCOPE_CLOUD';
    public const SCOPE_PAAS = 'SCOPE_PAAS';
    public string $value;
    private static array $map = [
        self::SCOPE_CONFIG => true,
        self::SCOPE_IP4PING => true,
        self::SCOPE_DIRECTORY => true,
        self::SCOPE_DIRECTORY_SYNC => true,
        self::SCOPE_NETWORK_SYNC => true,
        self::SCOPE_NETWORK_NEIGHBORHOOD => true,
        self::SCOPE_CLOUD => true,
        self::SCOPE_PAAS => 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;
    }
}