<?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 ScheduleExceptionInput
 * The schedule exception. The exception defines when a scheduled job should NOT be running. * @property mixed $creationTime = null The schedule creation time.
 * @property null|iterable|int[] $days = null The days of the exception
 * @property mixed $fromTime = null The schedule exception start time
 * @property mixed $modificationTime = null The schedule modification time.
 * @property null|ScheduleInputInputType $schedule = null The schedule which this exception belongs to
 * @property mixed $toTime = null The schedule exception end time
 * @property null|ScheduleTypeEnum $type = null The schedule type
 */
final class ScheduleExceptionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'schedule') {
            return new ScheduleInputInputType($value);
        }

        if ($name === 'type') {
            return new ScheduleTypeEnum($value);
        }

        return $value;
    }
}