Quittio 0.3 API

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

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

jsonSerialize()

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}
Return values
array{severity: string, code: string, message: string, level: string, bt: ?string, path: ?string, hint: ?string, xpath: ?string}
On this page

Search results