final 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(Schema $type = 'mixed')

No description

skipDefaults(bool $state = true)

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 38
__construct(array $items)

No description

Parameters

array $items

at line 47
Structure default($value)

No description

Parameters

$value

Return Value

Structure

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

No description

Parameters

int|null $min

Return Value

Structure

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

No description

Parameters

int|null $max

Return Value

Structure

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

No description

Parameters

Schema $type

Return Value

Structure

at line 74
Structure skipDefaults(bool $state = true)

No description

Parameters

bool $state

Return Value

Structure

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

at line 198
mixed completeDefault(Context $context)

No description

Parameters

Context $context

Return Value

mixed

Traits

SmartObject