class Structure implements Schema

Methods

__construct(array $items)

No description

default($value)

No description

min(int|null $min)

No description

max(int|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 45
Structure default($value)

Parameters

$value

Return Value

Structure

at line 51
Structure min(int|null $min)

Parameters

int|null $min

Return Value

Structure

at line 58
Structure max(int|null $max)

Parameters

int|null $max

Return Value

Structure

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

Parameters

string|Schema $type

Return Value

Structure

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

at line 188
mixed completeDefault(Context $context)

Parameters

Context $context

Return Value

mixed

Traits

Strict class for better experience.