<?php

declare(strict_types=1);

namespace KupShop\GraphQLBundle\Middleware;

use TheCodingMachine\GraphQLite\InputField;
use TheCodingMachine\GraphQLite\InputFieldDescriptor;
use TheCodingMachine\GraphQLite\Middlewares\InputFieldHandlerInterface;
use TheCodingMachine\GraphQLite\Middlewares\InputFieldMiddlewareInterface;

class ModuleInputFieldMiddleware extends ModuleMiddleware implements InputFieldMiddlewareInterface
{
    public function process(InputFieldDescriptor $inputFieldDescriptor, InputFieldHandlerInterface $inputFieldHandler): ?InputField
    {
        return $this->handleModule($inputFieldDescriptor, $inputFieldHandler);
    }
}
