class Processor

Schema validator.

Traits

Strict class for better experience.

Properties

array $onNewContext

Methods

skipDefaults(bool $value = true)

No description

mixed
process(Schema $schema, $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.

Details

at line 29
skipDefaults(bool $value = true)

Parameters

bool $value

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

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

Parameters

Schema $schema
$data

Return Value

mixed

Exceptions

ValidationException

at line 56
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