final class Type implements Schema

Methods

__construct(string $type)

No description

nullable()

No description

mergeDefaults(bool $state = true)

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 32
__construct(string $type)

No description

Parameters

string $type

at line 40
Type nullable()

No description

Return Value

Type

at line 47
Type mergeDefaults(bool $state = true)

No description

Parameters

bool $state

Return Value

Type

at line 54
Type dynamic()

No description

Return Value

Type

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

No description

Parameters

float|null $min

Return Value

Type

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

No description

Parameters

float|null $max

Return Value

Type

at line 78
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 90
Type pattern(string|null $pattern)

No description

Parameters

string|null $pattern

Return Value

Type

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

Normalization.

Parameters

mixed $value
Context $context

Return Value

mixed

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

Merging.

Parameters

mixed $value
mixed $base

Return Value

mixed

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

Validation and finalization.

Parameters

mixed $value
Context $context

Return Value

mixed

Traits