<?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 InstalledExecutableFileInput
 * An executable file installed on an operating system. * @property null|ExecutableFileInputInputType $executableFile = null The associated executable file
 * @property null|string $installationPath = null The executable files's installation path
 * @property null|OperatingSystemInputInputType $operatingSystem = null The operating system the software is installed on
 */
final class InstalledExecutableFileInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'executableFile') {
            return new ExecutableFileInputInputType($value);
        }

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

        return $value;
    }
}