phpDocumentor

Error
in package

Struct to record a validation error.

Table of Contents

Properties

$code  : string
$context  : array<string|int, mixed>
$line  : int
$severity  : string

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
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

setLine()

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

        
On this page

Search results