<?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 NetworkNeighborhoodInput
 * The network neighborhood (Windows domain) * @property null|iterable|DeviceInputInputType[] $devices = null The list of devices assigned to the network neighborhood (Windows domain and workgroup).
 * @property null|DirectoryInputInputType $directory = null The license for a BIOS
 * @property mixed $discoveryTime = null The last discovery timestamp. This is the timestamp when the domain has been browsed for the last time.
 * @property null|string $name = null The network neighborhood/domain name.
 */
final class NetworkNeighborhoodInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        if ($name === 'directory') {
            return new DirectoryInputInputType($value);
        }

        return $value;
    }
}