Automattic\WooCommerce\Vendor\GraphQL\Executor

ExecutionContext::__constructpublicWC 1.0

Method of the class: ExecutionContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ExecutionContext = new ExecutionContext();
$ExecutionContext->__construct( $schema, $fragments, $rootValue, $contextValue, $operation, $variableValues, $errors, $fieldResolver, $argsMapper, $promiseAdapter );
$schema(Schema) (required)
.
$fragments(array) (required)
.
$rootValue(mixed) (required)
.
$contextValue(mixed) (required)
.
$operation(OperationDefinitionNode) (required)
.
$variableValues(array) (required)
.
$errors(list) (required)
.
$fieldResolver(callable) (required)
.
$argsMapper(callable) (required)
.
$promiseAdapter(PromiseAdapter) (required)
.

ExecutionContext::__construct() code WC 10.9.1

public function __construct(
    Schema $schema,
    array $fragments,
    $rootValue,
    $contextValue,
    OperationDefinitionNode $operation,
    array $variableValues,
    array $errors,
    callable $fieldResolver,
    callable $argsMapper,
    PromiseAdapter $promiseAdapter
) {
    $this->schema = $schema;
    $this->fragments = $fragments;
    $this->rootValue = $rootValue;
    $this->contextValue = $contextValue;
    $this->operation = $operation;
    $this->variableValues = $variableValues;
    $this->errors = $errors;
    $this->fieldResolver = $fieldResolver;
    $this->argsMapper = $argsMapper;
    $this->promiseAdapter = $promiseAdapter;
}