Documentation

Error

Table of Contents

$errors  : array<string|int, mixed>
Store the error msgs.
all()  : array<string|int, mixed>
Get all the error msgs.
get()  : array<string|int, mixed>
Get the error msgs.
has()  : bool
Check if the error has or not.
set()  : bool
Set the error msg.

Properties

$errors

Store the error msgs.

private static array<string|int, mixed> $errors = []
Tags
since
1.0.0

Methods

all()

Get all the error msgs.

public static all() : array<string|int, mixed>
Tags
since
1.0.0
Return values
array<string|int, mixed>

get()

Get the error msgs.

public get([mixed $key = null ]) : array<string|int, mixed>
Parameters
$key : mixed = null
Tags
since
1.0.0
Return values
array<string|int, mixed>

has()

Check if the error has or not.

public static has() : bool
Tags
since
1.0.0
Return values
bool

set()

Set the error msg.

public static set((string) $error[, mixed $key = null ]) : bool
Parameters
$error : (string)

error msg

$key : mixed = null
Tags
since
1.0.0
Return values
bool

Search results