ASTValidationContext
in package
Table of Contents
- $ast : DocumentNode
- $errors : array<string|int, Error>
- $schema : Schema
- __construct() : mixed
- getDocument() : DocumentNode
- getErrors() : array<string|int, Error>
- getSchema() : Schema|null
- reportError() : mixed
Properties
$ast
protected
DocumentNode
$ast
$errors
protected
array<string|int, Error>
$errors
$schema
protected
Schema
$schema
Methods
__construct()
public
__construct(DocumentNode $ast[, Schema|null $schema = null ]) : mixed
Parameters
- $ast : DocumentNode
- $schema : Schema|null = null
Return values
mixed —getDocument()
public
getDocument() : DocumentNode
Return values
DocumentNode —getErrors()
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error> —getSchema()
public
getSchema() : Schema|null
Return values
Schema|null —reportError()
public
reportError(Error $error) : mixed
Parameters
- $error : Error