phpDocumentor

Error

Struct to record a validation error.

Table of Contents

Properties

$code  : string
$context  : array
$line  : int
$severity  : string

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
string

getContext()

public getContext() : array
Return values
array

getLine()

public getLine() : int
Return values
int

getSeverity()

public getSeverity() : string
Return values
string

setLine()

public setLine(int $line) : void
Parameters
$line : int

        
On this page

Search results