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

mixed
normalize($value, Context $context)

Normalization.

mixed
merge($value, $base)

Merging.

mixed
complete($value, Context $context)

Validation and finalization.

Details

at line 34
__construct(string $type)

Parameters

string $type

at line 42
Type nullable()

Return Value

Type

at line 49
Type dynamic()

Return Value

Type

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

Parameters

float|null $min

Return Value

Type

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

Parameters

float|null $max

Return Value

Type

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

Parameters

string|Schema $type

Return Value

Type

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed