Table of Contents
Methods
-
__construct()
: mixed
-
__serialize()
: array<string|int, mixed>
-
__sleep()
: array<string|int, mixed>
-
__unserialize()
: void
-
__wakeup()
: void
-
addError()
: void
-
createFromErrorList()
: static
-
getErrors()
: array<string|int, mixed>
-
hasError()
: bool
-
hasErrors()
: bool
__construct()
public
__construct(string|array<string|int, mixed> $error[, mixed $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
-
$error
: string|array<string|int, mixed>
-
-
$code
: mixed
= 0
-
-
$previous
: Throwable|null
= null
-
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>
__unserialize()
public
__unserialize(mixed $serialized) : void
Parameters
-
$serialized
: mixed
-
__wakeup()
public
__wakeup() : void
addError()
public
addError(string|array<string|int, mixed> $error) : void
Parameters
-
$error
: string|array<string|int, mixed>
-
createFromErrorList()
public
static createFromErrorList(array<string|int, mixed> $errors[, mixed $code = 0 ][, Throwable|null $previous = null ]) : static
Parameters
-
$errors
: array<string|int, mixed>
-
-
$code
: mixed
= 0
-
-
$previous
: Throwable|null
= null
-
getErrors()
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>
hasError()
public
hasError(string $phraseId) : bool
Parameters
-
$phraseId
: string
-
hasErrors()
public
hasErrors() : bool