![]() |
VOOZH | about |
final class Message
Represents a single validation error or warning with a message template, error code, path, and variables.
| TypeMismatch |
variables: {value: mixed, expected: string} |
| ValueOutOfRange |
variables: {value: mixed, expected: string} |
| LengthOutOfRange |
variables: {value: mixed, length: int, expected: string} |
| PatternMismatch |
variables: {value: string, pattern: string} |
| FailedAssertion |
variables: {value: mixed, assertion: string} |
| MissingItem |
no variables |
| UnexpectedItem |
variables: {hint: string} |
| Deprecated |
no variables |
| TYPE_MISMATCH |
|
| VALUE_OUT_OF_RANGE |
|
| LENGTH_OUT_OF_RANGE |
|
| PATTERN_MISMATCH |
|
| FAILED_ASSERTION |
|
| MISSING_ITEM |
|
| UNEXPECTED_ITEM |
|
| DEPRECATED |
|
No description
Formats the message template by substituting %variable% placeholders with their values.
__construct(string $message, string $code, array $path, array $variables = [])
No description
| string | $message |
| string | $code |
| array | $path |
| array | $variables |
string
toString()
Formats the message template by substituting %variable% placeholders with their values.
| string |