Documentation

CredentialResult
in package

Table of Contents

Constants

STATUS_DANGER  = 'danger'
STATUS_SUCCESS  = 'success'
STATUS_WARNING  = 'warning'

Properties

$message  : string
$status  : string
$title  : string

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

Properties

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

danger()

public static danger(mixed $title, mixed $message) : mixed
Parameters
$title : mixed
$message : mixed

setMessage()

public setMessage(string $message) : $this
Parameters
$message : string
Return values
$this

setStatus()

public setStatus(string $status) : $this
Parameters
$status : string
Return values
$this

setTitle()

public setTitle(string $title) : $this
Parameters
$title : string
Return values
$this

success()

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

        
On this page

Search results