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($valueType = 'mixed', $keyType = null)

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

Parameters

string $type

at line 51
Type nullable()

Return Value

Type

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

Parameters

bool $state

Return Value

Type

at line 65
Type dynamic()

Return Value

Type

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

Parameters

float|null $min

Return Value

Type

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

Parameters

float|null $max

Return Value

Type

at line 90
Type items($valueType = 'mixed', $keyType = null)

Parameters

$valueType
$keyType

Return Value

Type

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

Parameters

string|null $pattern

Return Value

Type

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

Traits

Strict class for better experience.