class Schema

Methods

__construct ($body, Validator $validator = null)

No description

No description

normalizeObject ($subject, array $aliases)

No description

validate ($data)

No description

isValid ()

No description

No description

No description

Details

__construct($body, Validator $validator = null)

Parameters

$body
$validator Validator

Example code

$schema->__construct($body, $validator);

getPropertyPaths()

Example code

$schema->getPropertyPaths();

normalizeObject($subject, array $aliases)

Parameters

$subject
$aliases array

Example code

$schema->normalizeObject($subject, $aliases);

validate($data)

Parameters

$data

Example code

$schema->validate($data);

isValid()

Example code

$schema->isValid();

getErrors()

Example code

$schema->getErrors();

getErrorString()

Example code

$schema->getErrorString();