Automattic\WooCommerce\Vendor\GraphQL\Utils
BuildSchema::__construct
Method of the class: BuildSchema{}
No Hooks.
Returns
null. Nothing (null).
Usage
$BuildSchema = new BuildSchema(); $BuildSchema->__construct( $ast, ?callable $typeConfigDecorator, $options, ?callable $fieldConfigDecorator );
- $ast(DocumentNode) (required)
- .
- ?callable $typeConfigDecorator
- .
Default:null - $options(array)
- .
Default:[] - ?callable $fieldConfigDecorator
- .
Default:null
BuildSchema::__construct() BuildSchema:: construct code WC 10.9.1
public function __construct(
DocumentNode $ast,
?callable $typeConfigDecorator = null,
array $options = [],
?callable $fieldConfigDecorator = null
) {
$this->ast = $ast;
$this->typeConfigDecorator = $typeConfigDecorator;
$this->options = $options;
$this->fieldConfigDecorator = $fieldConfigDecorator;
}