<?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 MemoryModuleSlotInput
 * The memory module slot represents a slot for a memory module on the mainboard. * @property null|MemoryModuleInputInputType $memoryModule = null The memoryModule assigned to this slot
 * @property null|string $slotId = null The memory module slot id.
 * @property null|string $socketDesignation = null The memory module socket designation
 */
final class MemoryModuleSlotInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'memoryModule') {
            return new MemoryModuleInputInputType($value);
        }

        return $value;
    }
}