<?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 EventInput
 * A event object. * @property null|string $application = null The type of the event.
 * @property mixed $creationTime = null The creation timestamp of the event.
 * @property null|string $description = null The description for the event.
 * @property null|DiscoveryJobInputInputType $discoveryCycle = null The job that an event belongs to.
 * @property null|EventTypeEnum $eventType = null The type of the event.
 * @property mixed $modificationTime = null The modification timestamp of the event.
 * @property null|EventSeverityEnum $severity = null The severity of the event.
 * @property null|string $subject = null The type of the event.
 */
final class EventInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'discoveryCycle') {
            return new DiscoveryJobInputInputType($value);
        }

        if ($name === 'eventType') {
            return new EventTypeEnum($value);
        }

        if ($name === 'severity') {
            return new EventSeverityEnum($value);
        }

        return $value;
    }
}