TypedMessage
in package
Class TypedMessage
This class represents a message with a type (ie. success, error, etc.).
Table of Contents
Properties
Methods
- __construct() : mixed
- getMessage() : string
- getType() : string
- setMessage() : void
- setType() : void
Properties
$message
private
string
$message
the message
$type
private
string
$type
the type of the message
Methods
__construct()
public
__construct(string $message[, string $type = '' ]) : mixed
Parameters
- $message : string
- $type : string = ''
getMessage()
public
getMessage() : string
Return values
stringgetType()
public
getType() : string
Return values
stringsetMessage()
public
setMessage(string $message) : void
Parameters
- $message : string
setType()
public
setType(string $type) : void
Parameters
- $type : string