ErrorableImplementation
Tags
Table of Contents
Methods
- getErrorByCode() : Error|null
- Returns an error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- hasErrors() : bool
- Return true if collection has errors.
Methods
getErrorByCode()
Returns an error with the necessary code.
public
getErrorByCode(string|int $code) : Error|null
Parameters
- $code : string|int
-
The code of the error.
Return values
Error|nullgetErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>hasErrors()
Return true if collection has errors.
public
hasErrors() : bool