Bristol SU Support Package
|
Public Member Functions | |
setMessage (string $message) | |
getMessage () | |
setSuccess (bool $success) | |
getSuccess () | |
Static Public Member Functions | |
static | success (string $message='') |
static | failure (string $message='') |
Protected Attributes | |
$success | |
$message | |
Definition at line 5 of file ActionResponse.php.
|
static |
Create a failed response with an optional message
string | $message | Optional message |
Definition at line 77 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$message, and BristolSU\Support\Action\ActionResponse\setSuccess().
Referenced by BristolSU\Support\Action\Contracts\Action\handle(), and BristolSU\Support\Action\Actions\Log\run().
BristolSU\Support\Action\ActionResponse::getMessage | ( | ) |
Get the response message
Definition at line 33 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$message.
Referenced by BristolSU\Support\Action\History\HasHistory\saveHistory().
BristolSU\Support\Action\ActionResponse::getSuccess | ( | ) |
Get if the action was successful
Definition at line 52 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$success.
Referenced by BristolSU\Support\Action\History\HasHistory\saveHistory().
BristolSU\Support\Action\ActionResponse::setMessage | ( | string | $message | ) |
Set the response message
string | $message |
Definition at line 23 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$message.
BristolSU\Support\Action\ActionResponse::setSuccess | ( | bool | $success | ) |
Set if the action was successful
bool | $success |
Definition at line 43 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$success, and BristolSU\Support\Action\ActionResponse\success().
Referenced by BristolSU\Support\Action\ActionResponse\failure(), and BristolSU\Support\Action\ActionResponse\success().
|
static |
Create a successful response with an optional message
string | $message | Optional message |
Definition at line 63 of file ActionResponse.php.
References BristolSU\Support\Action\ActionResponse\$message, and BristolSU\Support\Action\ActionResponse\setSuccess().
Referenced by BristolSU\Support\Action\Actions\Log\run(), and BristolSU\Support\Action\ActionResponse\setSuccess().
|
protected |
|
protected |
Definition at line 11 of file ActionResponse.php.
Referenced by BristolSU\Support\Action\ActionResponse\getSuccess(), and BristolSU\Support\Action\ActionResponse\setSuccess().