<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 DiscoveryCloudStatusInput
 * DiscoveryCloudStatus * @property null|iterable|CloudItemStatusInputInputType[] $items = null items
 * @property null|string $majorMessage = null majorMessage
 */
final class DiscoveryCloudStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'items') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new CloudItemStatusInputInputType($v)); })($value);
        }

        return $value;
    }
}