final class Processor

Schema validator.

Properties

$onNewContext

Methods

void
skipDefaults(bool $value = true)

No description

mixed
process(Schema $schema, mixed $data)

Normalizes and validates data. Result is a clean completed data.

mixed
processMultiple(Schema $schema, array $dataset)

Normalizes and validates and merges multiple data. Result is a clean completed data.

array
getWarnings()

No description

Details

at line 25
void skipDefaults(bool $value = true)

No description

Parameters

bool $value

Return Value

void

at line 35
mixed process(Schema $schema, mixed $data)

Normalizes and validates data. Result is a clean completed data.

Parameters

Schema $schema
mixed $data

Return Value

mixed

Exceptions

ValidationException

at line 50
mixed processMultiple(Schema $schema, array $dataset)

Normalizes and validates and merges multiple data. Result is a clean completed data.

Parameters

Schema $schema
array $dataset

Return Value

mixed

Exceptions

ValidationException

at line 71
array getWarnings()

No description

Return Value

array