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
Methods
all()
Get all the error msgs.
public
static all() : array<string|int, mixed>
Tags
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
Return values
array<string|int, mixed> —has()
Check if the error has or not.
public
static has() : bool
Tags
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