class Type implements Schema

Traits

Strict class for better experience.

Methods

__construct(string $type)

No description

nullable()

No description

dynamic()

No description

min(float|null $min)

No description

max(float|null $max)

No description

items(string|Schema $type = 'mixed')

No description

pattern(string|null $pattern)

No description

mixed
normalize($value, Context $context)

Normalization.

mixed
merge($value, $base)

Merging.

mixed
complete($value, Context $context)

Validation and finalization.

Details

at line 37
__construct(string $type)

Parameters

string $type

at line 45
Type nullable()

Return Value

Type

at line 52
Type dynamic()

Return Value

Type

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

Parameters

float|null $min

Return Value

Type

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

Parameters

float|null $max

Return Value

Type

at line 77
Type items(string|Schema $type = 'mixed')

Parameters

string|Schema $type

Return Value

Type

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

Parameters

string|null $pattern

Return Value

Type

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed