CredentialResult
in package
Table of Contents
Constants
- STATUS_DANGER = 'danger'
- STATUS_SUCCESS = 'success'
- STATUS_WARNING = 'warning'
Properties
Methods
- __construct() : mixed
- CredentialResponse constructor.
- buildResponse() : mixed
- danger() : mixed
- getMessage() : string
- getStatus() : string
- getTitle() : string
- isSuccess() : mixed
- setMessage() : $this
- setStatus() : $this
- setTitle() : $this
- success() : mixed
- warning() : mixed
Constants
STATUS_DANGER
public
mixed
STATUS_DANGER
= 'danger'
STATUS_SUCCESS
public
mixed
STATUS_SUCCESS
= 'success'
STATUS_WARNING
public
mixed
STATUS_WARNING
= 'warning'
Properties
$message
private
string
$message
$status
private
string
$status
$title
private
string
$title
Methods
__construct()
CredentialResponse constructor.
public
__construct(string $title, string $message[, string $status = self::STATUS_SUCCESS ]) : mixed
Parameters
- $title : string
- $message : string
- $status : string = self::STATUS_SUCCESS
buildResponse()
public
buildResponse() : mixed
danger()
public
static danger(mixed $title, mixed $message) : mixed
Parameters
- $title : mixed
- $message : mixed
getMessage()
public
getMessage() : string
Return values
stringgetStatus()
public
getStatus() : string
Return values
stringgetTitle()
public
getTitle() : string
Return values
stringisSuccess()
public
isSuccess() : mixed
setMessage()
public
setMessage(string $message) : $this
Parameters
- $message : string
Return values
$thissetStatus()
public
setStatus(string $status) : $this
Parameters
- $status : string
Return values
$thissetTitle()
public
setTitle(string $title) : $this
Parameters
- $title : string
Return values
$thissuccess()
public
static success(mixed $title, mixed $message) : mixed
Parameters
- $title : mixed
- $message : mixed
warning()
public
static warning(mixed $title, mixed $message) : mixed
Parameters
- $title : mixed
- $message : mixed