class Structure implements Schema

Traits

Strict class for better experience.

Methods

__construct(array $items)

No description

default($value)

No description

min(float|null $min)

No description

max(float|null $max)

No description

otherItems(string|Schema $type = 'mixed')

No description

mixed
normalize($value, Context $context)

Normalization.

mixed
merge($value, $base)

Merging.

mixed
complete($value, Context $context)

Validation and finalization.

mixed
completeDefault(Context $context)

No description

Details

at line 36
__construct(array $items)

Parameters

array $items

at line 44
Structure default($value)

Parameters

$value

Return Value

Structure

at line 50
Structure min(float|null $min)

Parameters

float|null $min

Return Value

Structure

at line 57
Structure max(float|null $max)

Parameters

float|null $max

Return Value

Structure

at line 67
Structure otherItems(string|Schema $type = 'mixed')

Parameters

string|Schema $type

Return Value

Structure

at line 77
mixed normalize($value, Context $context)

Normalization.

Parameters

$value
Context $context

Return Value

mixed

at line 94
mixed merge($value, $base)

Merging.

Parameters

$value
$base

Return Value

mixed

at line 123
mixed complete($value, Context $context)

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

at line 171
mixed completeDefault(Context $context)

Parameters

Context $context

Return Value

mixed