PHP Класс Youshido\GraphQL\Execution\Processor

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$data array
$executionContext Youshido\GraphQL\Execution\Context\ExecutionContext
$maxComplexity integer
$resolveValidator Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface

Открытые методы

Метод Описание
__construct ( AbstractSchema $schema )
getExecutionContext ( ) : ExecutionContext You can access ExecutionContext to check errors and inject dependencies
getMaxComplexity ( ) : integer
getResponseData ( )
processPayload ( $payload, $variables = [], $reducers = [] )
setMaxComplexity ( integer $maxComplexity )

Защищенные методы

Метод Описание
createResolveInfo ( Youshido\GraphQL\Field\FieldInterface $field, array $astFields )
doResolve ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null )
parseAndCreateRequest ( $payload, $variables = [] )
parseArgumentsValues ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
resolveComposite ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
resolveField ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null, $fromObject = false )
resolveList ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
resolveObject ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue, $fromUnion = false )
resolveQuery ( Query $query )
resolveScalar ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )

Приватные методы

Метод Описание
collectResult ( Youshido\GraphQL\Field\FieldInterface $field, AbstractObjectType $type, $ast, $resolvedValue )
getAlias ( Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
getVariableReferenceArgumentValue ( VariableReference $variableReference, AbstractType $argumentType, Request $request )
prepareArgumentValue ( $argumentValue, AbstractType $argumentType, Request $request )
prepareAstArguments ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $query, Request $request )

Описание методов

__construct() публичный Метод

public __construct ( AbstractSchema $schema )
$schema Youshido\GraphQL\Schema\AbstractSchema

createResolveInfo() защищенный Метод

protected createResolveInfo ( Youshido\GraphQL\Field\FieldInterface $field, array $astFields )
$field Youshido\GraphQL\Field\FieldInterface
$astFields array

doResolve() защищенный Метод

protected doResolve ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

getExecutionContext() публичный Метод

You can access ExecutionContext to check errors and inject dependencies
public getExecutionContext ( ) : ExecutionContext
Результат Youshido\GraphQL\Execution\Context\ExecutionContext

getMaxComplexity() публичный Метод

public getMaxComplexity ( ) : integer
Результат integer

getResponseData() публичный Метод

public getResponseData ( )

parseAndCreateRequest() защищенный Метод

protected parseAndCreateRequest ( $payload, $variables = [] )

parseArgumentsValues() защищенный Метод

protected parseArgumentsValues ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

processPayload() публичный Метод

public processPayload ( $payload, $variables = [], $reducers = [] )

resolveComposite() защищенный Метод

protected resolveComposite ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveField() защищенный Метод

protected resolveField ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null, $fromObject = false )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveList() защищенный Метод

protected resolveList ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveObject() защищенный Метод

protected resolveObject ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue, $fromUnion = false )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveQuery() защищенный Метод

protected resolveQuery ( Query $query )
$query Youshido\GraphQL\Parser\Ast\Query

resolveScalar() защищенный Метод

protected resolveScalar ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

setMaxComplexity() публичный Метод

public setMaxComplexity ( integer $maxComplexity )
$maxComplexity integer

Описание свойств

$data защищенное свойство

protected array $data
Результат array

$executionContext защищенное свойство

protected ExecutionContext,Youshido\GraphQL\Execution\Context $executionContext
Результат Youshido\GraphQL\Execution\Context\ExecutionContext

$maxComplexity защищенное свойство

protected int $maxComplexity
Результат integer

$resolveValidator защищенное свойство

protected ResolveValidatorInterface,Youshido\GraphQL\Validator\ResolveValidator $resolveValidator
Результат Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface