Automattic\WooCommerce\Vendor\GraphQL\Validator
SDLValidationContext::__construct
Method of the class: SDLValidationContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SDLValidationContext = new SDLValidationContext(); $SDLValidationContext->__construct( $ast, ?Schema $schema );
- $ast(DocumentNode) (required)
- .
- ?Schema $schema(required)
- .
SDLValidationContext::__construct() SDLValidationContext:: construct code WC 10.9.1
public function __construct(DocumentNode $ast, ?Schema $schema)
{
$this->ast = $ast;
$this->schema = $schema;
}