Message
in package
FinalYes
Table of Contents
Constants
- Deprecated = 'schema.deprecated'
- no variables
- DEPRECATED = self::Deprecated
- FAILED_ASSERTION = self::FailedAssertion
- FailedAssertion = 'schema.failedAssertion'
- variables: {value: mixed, assertion: string}
- LENGTH_OUT_OF_RANGE = self::LengthOutOfRange
- LengthOutOfRange = 'schema.lengthOutOfRange'
- variables: {value: mixed, length: int, expected: string}
- MISSING_ITEM = self::MissingItem
- MissingItem = 'schema.missingItem'
- no variables
- PATTERN_MISMATCH = self::PatternMismatch
- PatternMismatch = 'schema.patternMismatch'
- variables: {value: string, pattern: string}
- TYPE_MISMATCH = self::TypeMismatch
- TypeMismatch = 'schema.typeMismatch'
- variables: {value: mixed, expected: string}
- UNEXPECTED_ITEM = self::UnexpectedItem
- UnexpectedItem = 'schema.unexpectedItem'
- variables: {hint: string}
- VALUE_OUT_OF_RANGE = self::ValueOutOfRange
- ValueOutOfRange = 'schema.valueOutOfRange'
- variables: {value: mixed, expected: string}
Properties
- $code : string
- $message : string
- $path : array<string|int, string>
- $variables : array<string|int, string>
Methods
- __construct() : mixed
- toString() : string
Constants
Deprecated
no variables
public
mixed
Deprecated
= 'schema.deprecated'
DEPRECATED
use Message::Deprecated
public
mixed
DEPRECATED
= self::Deprecated
FAILED_ASSERTION
use Message::FailedAssertion
public
mixed
FAILED_ASSERTION
= self::FailedAssertion
FailedAssertion
variables: {value: mixed, assertion: string}
public
mixed
FailedAssertion
= 'schema.failedAssertion'
LENGTH_OUT_OF_RANGE
use Message::LengthOutOfRange
public
mixed
LENGTH_OUT_OF_RANGE
= self::LengthOutOfRange
LengthOutOfRange
variables: {value: mixed, length: int, expected: string}
public
mixed
LengthOutOfRange
= 'schema.lengthOutOfRange'
MISSING_ITEM
use Message::MissingItem
public
mixed
MISSING_ITEM
= self::MissingItem
MissingItem
no variables
public
mixed
MissingItem
= 'schema.missingItem'
PATTERN_MISMATCH
use Message::PatternMismatch
public
mixed
PATTERN_MISMATCH
= self::PatternMismatch
PatternMismatch
variables: {value: string, pattern: string}
public
mixed
PatternMismatch
= 'schema.patternMismatch'
TYPE_MISMATCH
use Message::TypeMismatch
public
mixed
TYPE_MISMATCH
= self::TypeMismatch
TypeMismatch
variables: {value: mixed, expected: string}
public
mixed
TypeMismatch
= 'schema.typeMismatch'
UNEXPECTED_ITEM
use Message::UnexpectedItem
public
mixed
UNEXPECTED_ITEM
= self::UnexpectedItem
UnexpectedItem
variables: {hint: string}
public
mixed
UnexpectedItem
= 'schema.unexpectedItem'
VALUE_OUT_OF_RANGE
use Message::ValueOutOfRange
public
mixed
VALUE_OUT_OF_RANGE
= self::ValueOutOfRange
ValueOutOfRange
variables: {value: mixed, expected: string}
public
mixed
ValueOutOfRange
= 'schema.valueOutOfRange'
Properties
$code
public
string
$code
$message
public
string
$message
$path
public
array<string|int, string>
$path
$variables
public
array<string|int, string>
$variables
Methods
__construct()
public
__construct(string $message, string $code, array<string|int, mixed> $path[, array<string|int, mixed> $variables = [] ]) : mixed
Parameters
- $message : string
- $code : string
- $path : array<string|int, mixed>
- $variables : array<string|int, mixed> = []
toString()
public
toString() : string