<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\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 PatchInput
 * A patch. * @property mixed $creationTime = null The time when the patch was detected for the first time.
 * @property null|iterable|InstalledPatchInputInputType[] $installations = null The list of installations for this patch
 * @property null|string $manufacturer = null The patch manufacturer
 * @property null|string $name = null The patch name
 */
final class PatchInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'installations') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new InstalledPatchInputInputType($v)); })($value);
        }

        return $value;
    }
}