Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
QueryPlan::__construct
Method of the class: QueryPlan{}
No Hooks.
Returns
null. Nothing (null).
Usage
$QueryPlan = new QueryPlan(); $QueryPlan->__construct( $parentType, $schema, $fieldNodes, $variableValues, $fragments, $options );
- $parentType(ObjectType) (required)
- .
- $schema(Schema) (required)
- .
- $fieldNodes(iterable
) (required) - .
- $variableValues(array) (required)
- .
- $fragments(array) (required)
- .
- $options(QueryPlanOptions)
- .
Default:[]
QueryPlan::__construct() QueryPlan:: construct code WC 10.9.1
public function __construct(ObjectType $parentType, Schema $schema, iterable $fieldNodes, array $variableValues, array $fragments, array $options = [])
{
$this->schema = $schema;
$this->variableValues = $variableValues;
$this->fragments = $fragments;
$this->groupImplementorFields = $options['groupImplementorFields'] ?? false;
$this->analyzeQueryPlan($parentType, $fieldNodes);
}