Error
Struct to record a validation error.
Table of Contents
Properties
Methods
- __construct() : mixed
- getCode() : string
- getContext() : array
- getLine() : int
- getSeverity() : string
- setLine() : void
Properties
$code
protected
string
$code
$context
protected
array
$context
= []
$line
protected
int
$line
= 0
$severity
protected
string
$severity
Methods
__construct()
public
__construct(string $severity, string $code, int|null $line[, array $context = [] ]) : mixed
Parameters
- $severity : string
- $code : string
- $line : int|null
- $context : array = []
getCode()
public
getCode() : string
Return values
stringgetContext()
public
getContext() : array
Return values
arraygetLine()
public
getLine() : int
Return values
intgetSeverity()
public
getSeverity() : string
Return values
stringsetLine()
public
setLine(int $line) : void
Parameters
- $line : int