<?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 Layer2TopologyInput
 * A relation between two devices. The kind of relation is defined by the relation type. * @property null|NetworkInterfaceInputInputType $networkInterface1 = null The first network interface for the topology
 * @property null|NetworkInterfaceInputInputType $networkInterface2 = null The second network interface for the topology
 */
final class Layer2TopologyInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'networkInterface1') {
            return new NetworkInterfaceInputInputType($value);
        }

        if ($name === 'networkInterface2') {
            return new NetworkInterfaceInputInputType($value);
        }

        return $value;
    }
}