Type
final class Type implements Schema
Methods
No description
No description
Allows the value to be a DynamicParameter, which is recorded for deferred validation.
Sets a regex pattern the string value must match entirely (anchored to start and end).
Merges two normalized values, with $value taking priority over $base.
Details
at line 33
__construct(string $type)
No description
at line 44
Type
nullable()
Allows the value to be null in addition to the declared type.
at line 51
Type
mergeDefaults(bool $state = true)
No description
at line 65
Type
mergeMode(MergeMode $mode)
Sets how arrays are combined when merging multiple configurations.
at line 75
Type
dynamic()
Allows the value to be a DynamicParameter, which is recorded for deferred validation.
at line 82
Type
min(float|null $min)
No description
at line 89
Type
max(float|null $max)
No description
at line 99
Type
items(Schema $valueType = 'mixed', Schema|null $keyType = null)
| internal | use arrayOf() or listOf() |
No description
at line 114
Type
pattern(string|null $pattern)
Sets a regex pattern the string value must match entirely (anchored to start and end).
at line 124
mixed
normalize(mixed $value, Context $context)
Applies pre-processing transformations to the raw input value (e.g., via before() hooks).
at line 147
mixed
merge(mixed $value, mixed $base)
Merges two normalized values, with $value taking priority over $base.
at line 173
mixed
complete(mixed $value, Context $context)
Validates the value and applies defaults, transforms, and assertions.