<?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 ACEFlags
 * The inheritance mask for Windows access permissions
 */
final class ACEFlagsEnum implements EnumInterface
{
    public const OBJECT_INHERIT_ACE = 'OBJECT_INHERIT_ACE';
    public const CONTAINER_INHERIT_ACE = 'CONTAINER_INHERIT_ACE';
    public const NO_PROPAGATE_INHERIT_ACE = 'NO_PROPAGATE_INHERIT_ACE';
    public const INHERIT_ONLY_ACE = 'INHERIT_ONLY_ACE';
    public const INHERITED_ACE = 'INHERITED_ACE';
    public const SUCCESSFUL_ACCESS_ACE_FLAG = 'SUCCESSFUL_ACCESS_ACE_FLAG';
    public const FAILED_ACCESS_ACE_FLAG = 'FAILED_ACCESS_ACE_FLAG';
    public string $value;
    private static array $map = [
        self::OBJECT_INHERIT_ACE => true,
        self::CONTAINER_INHERIT_ACE => true,
        self::NO_PROPAGATE_INHERIT_ACE => true,
        self::INHERIT_ONLY_ACE => true,
        self::INHERITED_ACE => true,
        self::SUCCESSFUL_ACCESS_ACE_FLAG => true,
        self::FAILED_ACCESS_ACE_FLAG => 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;
    }
}