<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Type\InputType;

/**
 * This code is @generated by axtiva/flexible-graphql-php do not edit it
 * PHP representation of graphql type ApplicationModeChangeOptions
 * Application start mode change options * @property null|string $comment = null A reason for changing application mode
 * @property null|bool $forced = null Whether to change application mode unconditionally or perform some consistency checks of the application mode and database
 * @property null|ApplicationStartModeEnum $mode = null Application mode to set
 */
final class ApplicationModeChangeOptionsInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'mode') {
            return new ApplicationStartModeEnum($value);
        }

        return $value;
    }
}