<?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 ExecutableFileInput
 * Executable files used or installed on an operating system. * @property null|string $binaryName = null The filename for the binary executable file
 * @property mixed $creationTime = null The time when the application was detected for the first time.
 * @property null|string $description = null The description for the executable file
 * @property mixed $filesize = null The filesize for the executable file
 * @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|InstalledExecutableFileInputInputType[] $installations = null The list of installations for this application
 * @property mixed $lastModificationDate = null The last modification date for the executable file
 * @property null|string $manufacturer = null The manufacturer for the executable file
 * @property null|string $name = null The name for the binary executable file
 * @property null|string $version = null The version for the binary executable file
 */
final class ExecutableFileInputInputType 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 InstalledExecutableFileInputInputType($v)); })($value);
        }

        return $value;
    }
}