ValidationMessage
in package
implements
JsonSerializable
Read onlyYes
FinalYes
A single validation finding.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $bt : string|null
- $code : string
- $hint : string|null
- $level : ValidationLevel
- $message : string
- $path : string|null
- $severity : Severity
- $xpath : string|null
Methods
- __construct() : mixed
- isError() : bool
- jsonSerialize() : array<string, string|null>
- toArray() : array{severity: string, code: string, message: string, level: string, bt: ?string, path: ?string, hint: ?string, xpath: ?string}
Properties
$bt
public
string|null
$bt
= null
$code
public
string
$code
$hint
public
string|null
$hint
= null
$level
public
ValidationLevel
$level
$message
public
string
$message
$path
public
string|null
$path
= null
$severity
public
Severity
$severity
$xpath
public
string|null
$xpath
= null
Methods
__construct()
public
__construct(Severity $severity, string $code, string $message, ValidationLevel $level[, string|null $bt = null ][, string|null $path = null ][, string|null $hint = null ][, string|null $xpath = null ]) : mixed
Parameters
- $severity : Severity
- $code : string
- $message : string
- $level : ValidationLevel
- $bt : string|null = null
- $path : string|null = null
- $hint : string|null = null
- $xpath : string|null = null
isError()
public
isError() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : array<string, string|null>
Return values
array<string, string|null>toArray()
public
toArray() : array{severity: string, code: string, message: string, level: string, bt: ?string, path: ?string, hint: ?string, xpath: ?string}