<?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 ApplicationInput
 * The applications installed on an operating system. * @property mixed $creationTime = null The time when the application was detected for the first time.
 * @property null|string $id = null The internal id this entity. Note that the id might change when the entity gets deleted and recreated.
 * @property null|iterable|InstalledApplicationInputInputType[] $installations = null The list of installations for this application
 * @property null|string $manufacturer = null The application manufacturer
 * @property null|string $name = null The application name
 * @property null|string $version = null The application version
 */
final class ApplicationInputInputType 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 InstalledApplicationInputInputType($v)); })($value);
        }

        return $value;
    }
}