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