Loss
in package
implements
JsonSerializable, Stringable
Read onlyYes
FinalYes
One entry of a loss report: data the target version cannot hold as it was. The path and the line are those of the source document. Messages never quote more than a short fragment.
Table of Contents
Interfaces
- JsonSerializable
- Stringable
Properties
- $code : string
- $line : int|null
- $message : string
- $path : string
- $severity : Severity
- $storedAs : StoredAs
Methods
- __construct() : mixed
- __toString() : string
- jsonSerialize() : array{code: string, severity: string, path: string, line?: int, storedAs: string, message: string}
Properties
$code
public
string
$code
$line
public
int|null
$line
$message
public
string
$message
$path
public
string
$path
$severity
public
Severity
$severity
$storedAs
public
StoredAs
$storedAs
Methods
__construct()
public
__construct(string $code, Severity $severity, string $path, int|null $line, StoredAs $storedAs, string $message) : mixed
Parameters
__toString()
public
__toString() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : array{code: string, severity: string, path: string, line?: int, storedAs: string, message: string}