SchemaValidator
in package
Table of Contents
- $schemes : Schemes
- __construct() : mixed
- Constructor.
- validate() : void
- Validate data against schema.
Properties
$schemes
private
Schemes
$schemes
Methods
__construct()
Constructor.
public
__construct(Schemes $schemes) : mixed
Parameters
- $schemes : Schemes
Return values
mixed —validate()
Validate data against schema.
public
validate(string $schemaId, mixed $data) : void
Parameters
- $schemaId : string
- $data : mixed