WooCommerce Code Reference

ExecutionContext
in package

Data that must be available at all points during query execution.

Namely, schema of the type system that is currently executing, and the fragments defined in the query document.

Tags
phpstan-import-type

FieldResolver from Executor

phpstan-import-type

ArgsMapper from Executor

Table of Contents

$argsMapper  : callable
$contextValue  : mixed
$errors  : array<string|int, mixed>
$fieldResolver  : callable
$fragments  : array<string|int, mixed>
$operation  : OperationDefinitionNode
$promiseAdapter  : PromiseAdapter
$rootValue  : mixed
$schema  : Schema
$variableValues  : array<string|int, mixed>
__construct()  : mixed
addError()  : void

Properties

Methods

__construct()

public __construct(Schema $schema, array<string, FragmentDefinitionNode$fragments, mixed $rootValue, mixed $contextValue, OperationDefinitionNode $operation, array<string, mixed> $variableValues, array<int, Error$errors, callable $fieldResolver, callable $argsMapper, PromiseAdapter $promiseAdapter) : mixed
Parameters
$schema : Schema
$fragments : array<string, FragmentDefinitionNode>
$rootValue : mixed
$contextValue : mixed
$operation : OperationDefinitionNode
$variableValues : array<string, mixed>
$errors : array<int, Error>
$fieldResolver : callable
$argsMapper : callable
$promiseAdapter : PromiseAdapter
Tags
phpstan-param

FieldResolver $fieldResolver

Return values
mixed