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

No description

Parameters

string $type

at line 48
Type nullable()

No description

Return Value

Type

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

No description

Parameters

bool $state

Return Value

Type

at line 62
Type dynamic()

No description

Return Value

Type

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

No description

Parameters

float|null $min

Return Value

Type

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

No description

Parameters

float|null $max

Return Value

Type

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

internal  use arrayOf() or listOf()
 

No description

Parameters

Schema $valueType
Schema $keyType

Return Value

Type

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

No description

Parameters

string|null $pattern

Return Value

Type

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

Normalization.

Parameters

$value
Context $context

Return Value

mixed

at line 139
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