ObjectStatus
Object for saving statuses of other objects/ See also ObjectStatusTrait.
Table of Contents
Methods
- addError() : void
- getErrorByCode() : array<string|int, mixed>
- getErrors() : array<string|int, mixed>
- getErrorsByCode() : array<string|int, mixed>
- hasErrors() : bool
- isSuccess() : bool
- resetErrors() : void
Methods
addError()
public
addError(string $code, string $message) : void
Parameters
- $code : string
- $message : string
getErrorByCode()
public
getErrorByCode(string $code) : array<string|int, mixed>
Parameters
- $code : string
Return values
array<string|int, mixed>getErrors()
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorsByCode()
public
getErrorsByCode(string $code) : array<string|int, mixed>
Parameters
- $code : string
Return values
array<string|int, mixed>hasErrors()
public
hasErrors() : bool
Return values
boolisSuccess()
public
isSuccess() : bool
Return values
boolresetErrors()
public
resetErrors() : void