<?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 PrinterState
 * The Printer States
 */
final class PrinterStateEnum implements EnumInterface
{
    public const Ready = 'Ready';
    public const Paused = 'Paused';
    public const Error = 'Error';
    public const PendingDeletion = 'PendingDeletion';
    public const PaperJam = 'PaperJam';
    public const OutOfPaper = 'OutOfPaper';
    public const ManualFeed = 'ManualFeed';
    public const PaperProblem = 'PaperProblem';
    public const Offline = 'Offline';
    public const IOActive = 'IOActive';
    public const Busy = 'Busy';
    public const Printing = 'Printing';
    public const OutputBinFull = 'OutputBinFull';
    public const NotAvailable = 'NotAvailable';
    public const Waiting = 'Waiting';
    public const Processing = 'Processing';
    public const Initializing = 'Initializing';
    public const WarmingUp = 'WarmingUp';
    public const TonerLow = 'TonerLow';
    public const NoToner = 'NoToner';
    public const PagePunt = 'PagePunt';
    public const UserIntervention = 'UserIntervention';
    public const OutOfMemory = 'OutOfMemory';
    public const DoorOpen = 'DoorOpen';
    public const ServerUnknown = 'ServerUnknown';
    public const PowerSave = 'PowerSave';
    public string $value;
    private static array $map = [
        self::Ready => true,
        self::Paused => true,
        self::Error => true,
        self::PendingDeletion => true,
        self::PaperJam => true,
        self::OutOfPaper => true,
        self::ManualFeed => true,
        self::PaperProblem => true,
        self::Offline => true,
        self::IOActive => true,
        self::Busy => true,
        self::Printing => true,
        self::OutputBinFull => true,
        self::NotAvailable => true,
        self::Waiting => true,
        self::Processing => true,
        self::Initializing => true,
        self::WarmingUp => true,
        self::TonerLow => true,
        self::NoToner => true,
        self::PagePunt => true,
        self::UserIntervention => true,
        self::OutOfMemory => true,
        self::DoorOpen => true,
        self::ServerUnknown => true,
        self::PowerSave => 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;
    }
}