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

No description

Parameters

array $items

at line 48
Structure default($value)

No description

Parameters

$value

Return Value

Structure

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

No description

Parameters

int|null $min

Return Value

Structure

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

No description

Parameters

int|null $max

Return Value

Structure

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

No description

Parameters

string|Schema $type

Return Value

Structure

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

No description

Parameters

bool $state

Return Value

Structure

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

at line 200
mixed completeDefault(Context $context)

No description

Parameters

Context $context

Return Value

mixed

Traits

SmartObject