<?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 InstalledCertificateInput
 * A certificate stored in the operating system's certificate store. * @property null|string $path = null The certificate path
 * @property null|CertificateInputInputType $certificate = null The associated certificate
 * @property null|OperatingSystemInputInputType $operatingSystem = null The operating system the software is installed on
 */
final class InstalledCertificateInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'certificate') {
            return new CertificateInputInputType($value);
        }

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

        return $value;
    }
}