Type
final class Type implements Schema
Methods
__construct(string $type)
No description
mergeDefaults(bool $state = true)
No description
mixed
merge(mixed $value, mixed $base)
Merging.
Details
at line 32
__construct(string $type)
No description
at line 40
Type
nullable()
No description
at line 47
Type
mergeDefaults(bool $state = true)
No description
at line 54
Type
dynamic()
No description
at line 61
Type
min(float|null $min)
No description
at line 68
Type
max(float|null $max)
No description
at line 78
Type
items(Schema $valueType = 'mixed', Schema|null $keyType = null)
internal | use arrayOf() or listOf() |
No description
at line 90
Type
pattern(string|null $pattern)
No description
at line 100
mixed
normalize(mixed $value, Context $context)
Normalization.
at line 131
mixed
merge(mixed $value, mixed $base)
Merging.
at line 158
mixed
complete(mixed $value, Context $context)
Validation and finalization.