<?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 InstalledPatchInput
 * A patch installed on an operating system. * @property mixed $installationDate = null The patch installation timestamp
 * @property null|OperatingSystemInputInputType $operatingSystem = null The operating system that this patch is installed on
 * @property null|PatchInputInputType $patch = null The associated patch
 */
final class InstalledPatchInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'operatingSystem') {
            return new OperatingSystemInputInputType($value);
        }

        if ($name === 'patch') {
            return new PatchInputInputType($value);
        }

        return $value;
    }
}