/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/GraphQl/Query/Resolver/BatchServiceContractResolverInterface.php
44 строки
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2019 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\GraphQl\Query\Resolver; use Magento\Framework\GraphQl\Exception\GraphQlInputException; /** * Resolve multiple brunches/leaves by executing a batch service contract. * * @api */ interface BatchServiceContractResolverInterface { /** * Service contract to use, 1st element - class, 2nd - method. * * @return array */ public function getServiceContract(): array; /** * Convert GraphQL arguments into a batch service contract argument item. * * @param ResolveRequestInterface $request * @return object * @throws GraphQlInputException */ public function convertToServiceArgument(ResolveRequestInterface $request); /** * Convert service contract result item into resolved brunch/leaf. * * @param object $result Result item returned from service contract. * @param ResolveRequestInterface $request Initial request. * @return mixed|Value Resolved response. * @throws GraphQlInputException */ public function convertFromServiceResult($result, ResolveRequestInterface $request); }