Schema
interface Schema
Defines the contract for schema elements used in data validation and normalization.
Methods
mixed
mixed
merge(mixed $value, mixed $base)
Merges two normalized values, with $value taking priority over $base.
mixed
mixed
completeDefault(Context $context)
Returns the default value, or adds a missing-item error if the field is required.
Details
at line 19
mixed
normalize(mixed $value, Context $context)
Applies pre-processing transformations to the raw input value (e.g., via before() hooks).
at line 24
mixed
merge(mixed $value, mixed $base)
Merges two normalized values, with $value taking priority over $base.
at line 29
mixed
complete(mixed $value, Context $context)
Validates the value and applies defaults, transforms, and assertions.
at line 34
mixed
completeDefault(Context $context)
Returns the default value, or adds a missing-item error if the field is required.