Documentation

Error
in package

Struct to record a validation error.

Table of Contents

$code  : string
$context  : array<string|int, mixed>
$line  : int
$severity  : string
__construct()  : mixed
getCode()  : string
getContext()  : array<string|int, mixed>
getLine()  : int
getSeverity()  : string

Properties

$code

protected string $code

$context

protected array<string|int, mixed> $context = []

$line

protected int $line = 0

$severity

protected string $severity

Methods

__construct()

public __construct(string $severity, string $code, int|null $line[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
$severity : string
$code : string
$line : int|null
$context : array<string|int, mixed> = []
Return values
mixed

getCode()

public getCode() : string
Return values
string

getContext()

public getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLine()

public getLine() : int
Return values
int

getSeverity()

public getSeverity() : string
Return values
string

Search results