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

No description

Parameters

string $type

at line 51
Type nullable()

No description

Return Value

Type

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

No description

Parameters

bool $state

Return Value

Type

at line 65
Type dynamic()

No description

Return Value

Type

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

No description

Parameters

float|null $min

Return Value

Type

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

No description

Parameters

float|null $max

Return Value

Type

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

internal  use arrayOf() or listOf()
 

No description

Parameters

string|Schema $valueType
string|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($value, Context $context)

Normalization.

Parameters

$value
Context $context

Return Value

mixed

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

Merging.

Parameters

$value
$base

Return Value

mixed

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

Validation and finalization.

Parameters

$value
Context $context

Return Value

mixed

Traits

SmartObject