Korin API

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

Methods

__construct()

public __construct(string $code, Severity $severity, string $path, int|null $line, StoredAs $storedAs, string $message) : mixed
Parameters
$code : string
$severity : Severity
$path : string
$line : int|null
$storedAs : StoredAs
$message : string

__toString()

public __toString() : string
Return values
string

jsonSerialize()

public jsonSerialize() : array{code: string, severity: string, path: string, line?: int, storedAs: string, message: string}
Return values
array{code: string, severity: string, path: string, line?: int, storedAs: string, message: string}
On this page

Search results