final class Type implements Schema

Methods

__construct(string $type)

No description

nullable()

No description

mergeDefaults(bool $state = true) deprecated

No description

mergeMode(MergeMode $mode)

No description

dynamic()

No description

min(float|null $min)

No description

max(float|null $max)

No description

items(Schema $valueType = 'mixed', Schema|null $keyType = null)

No description

pattern(string|null $pattern)

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.

Details

at line 34
__construct(string $type)

No description

Parameters

string $type

at line 42
Type nullable()

No description

Return Value

Type

at line 50
Type mergeDefaults(bool $state = true) deprecated

deprecated mergeDefaults is disabled by default

No description

Parameters

bool $state

Return Value

Type

at line 60
Type mergeMode(MergeMode $mode)

No description

Parameters

MergeMode $mode

Return Value

Type

at line 67
Type dynamic()

No description

Return Value

Type

at line 74
Type min(float|null $min)

No description

Parameters

float|null $min

Return Value

Type

at line 81
Type max(float|null $max)

No description

Parameters

float|null $max

Return Value

Type

at line 91
Type items(Schema $valueType = 'mixed', Schema|null $keyType = null)

internal  use arrayOf() or listOf()
 

No description

Parameters

Schema $valueType
Schema|null $keyType

Return Value

Type

at line 103
Type pattern(string|null $pattern)

No description

Parameters

string|null $pattern

Return Value

Type

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

Normalization.

Parameters

mixed $value
Context $context

Return Value

mixed

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

Merging.

Parameters

mixed $value
mixed $base

Return Value

mixed

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

Validation and finalization.

Parameters

mixed $value
Context $context

Return Value

mixed

Traits