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

        if ($name === 'processor') {
            return new ProcessorInputInputType($value);
        }

        return $value;
    }
}