final class Structure implements Schema

Methods

__construct(array $shape)

No description

default(mixed $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

extend(array|self $shape)

No description

array
getShape()

No description

mixed
normalize(mixed $value, Context $context)

Normalization.

mixed
merge(mixed $value, mixed $base)

Merging.

mixed
complete(mixed $value, Context $context)

Validation and finalization.

mixed
completeDefault(Context $context)

No description

Details

at line 36
__construct(array $shape)

No description

Parameters

array $shape

at line 45
Structure default(mixed $value)

No description

Parameters

mixed $value

Return Value

Structure

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

No description

Parameters

int|null $min

Return Value

Structure

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

No description

Parameters

int|null $max

Return Value

Structure

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

No description

Parameters

Schema $type

Return Value

Structure

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

No description

Parameters

bool $state

Return Value

Structure

at line 79
Structure extend(array|self $shape)

No description

Parameters

array|self $shape

Return Value

Structure

at line 86
array getShape()

No description

Return Value

array

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

Normalization.

Parameters

mixed $value
Context $context

Return Value

mixed

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

Merging.

Parameters

mixed $value
mixed $base

Return Value

mixed

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

Validation and finalization.

Parameters

mixed $value
Context $context

Return Value

mixed

at line 196
mixed completeDefault(Context $context)

No description

Parameters

Context $context

Return Value

mixed

Traits