Automattic\WooCommerce\Vendor\GraphQL\Validator

SDLValidationContext::__constructpublicWC 1.0

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() code WC 10.9.1

public function __construct(DocumentNode $ast, ?Schema $schema)
{
    $this->ast = $ast;
    $this->schema = $schema;
}