Schema
in package
Table of Contents
- $id : string
- $schema : SchemaContract
- create() : self
- Create instance.
- id() : string
- Return name.
- validate() : void
- Validate data.
- __construct() : mixed
- Constructor.
Properties
$id
private
string
$id
$schema
private
SchemaContract
$schema
Methods
create()
Create instance.
public
static create(string $id, string $path[, Context $context = null ]) : self
Parameters
- $id : string
- $path : string
- $context : Context = null
Return values
self —id()
Return name.
public
id() : string
Return values
string —validate()
Validate data.
public
validate(mixed $data) : void
Parameters
- $data : mixed
Return values
void —__construct()
Constructor.
private
__construct(string $id, string $path[, Context $context = null ]) : mixed
Parameters
- $id : string
- $path : string
- $context : Context = null