Error
in package
Struct to record a validation error.
Table of Contents
Properties
Methods
- __construct() : mixed
- getCode() : string
- getContext() : array<string|int, mixed>
- getLine() : int
- getSeverity() : string
- setLine() : void
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> = []
getCode()
public
getCode() : string
Return values
stringgetContext()
public
getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>getLine()
public
getLine() : int
Return values
intgetSeverity()
public
getSeverity() : string
Return values
stringsetLine()
public
setLine(int $line) : void
Parameters
- $line : int