Type
final class Type implements Schema
Methods
__construct(string $type)
No description
mergeDefaults(bool $state = true)
No description
mixed
merge($value, $base)
Merging.
Details
at line 43
__construct(string $type)
No description
at line 51
Type
nullable()
No description
at line 58
Type
mergeDefaults(bool $state = true)
No description
at line 65
Type
dynamic()
No description
at line 72
Type
min(float|null $min)
No description
at line 79
Type
max(float|null $max)
No description
at line 91
Type
items(string|Schema $valueType = 'mixed', string|Schema|null $keyType = null)
internal | use arrayOf() or listOf() |
No description
at line 103
Type
pattern(string|null $pattern)
No description
at line 113
mixed
normalize($value, Context $context)
Normalization.
at line 141
mixed
merge($value, $base)
Merging.
at line 166
mixed
complete($value, Context $context)
Validation and finalization.
Traits
Strict class for better experience.