<?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 CloudFoundryApplicationInput
 * A CloudFoundry application. * @property null|int $instanceCount = null The CloudFoundry application instance count.
 * @property null|int $memoryLimit = null The CloudFoundry application memory limit.
 * @property null|string $name = null The CloudFoundry application name
 * @property null|int $runningInstanceCount = null The CloudFoundry application running instance count.
 * @property null|CloudFoundrySpaceInputInputType $space = null The space that this space belongs to
 * @property null|iterable|string[] $urls = null The url list for this CloudFoundry application.
 * @property null|string $version = null The CloudFoundry application version.
 */
final class CloudFoundryApplicationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'space') {
            return new CloudFoundrySpaceInputInputType($value);
        }

        return $value;
    }
}