CoreSystemMessage
in package
implements
SystemMessage
The default implementation of the SystemMessage interface
Tags
Table of Contents
Interfaces
- SystemMessage
- SystemMessage is used to provide UI updates to users.
Properties
- $message : string
- $messageType : string
Methods
- __construct() : mixed
- Constructs a new CoreSystemMessage by setting its type and message
- getMessage() : string
- Get the content of the message
- getType() : string
- Get the type of the message
- setMessage() : void
- Set the content of the message
- setType() : void
- Set the type of the message
Properties
$message
private
string
$message
The content of the message
$messageType
private
string
$messageType
Informs the UI about the type of the message (info, warn, success, notify, etc.)
Methods
__construct()
Constructs a new CoreSystemMessage by setting its type and message
public
__construct(string $message, string $messageType) : mixed
Parameters
- $message : string
-
The content of the message
- $messageType : string
-
Informs the UI about the type of the message (info, warn, success, notify, etc.)
getMessage()
Get the content of the message
public
getMessage() : string
Return values
string —$message
getType()
Get the type of the message
public
getType() : string
Return values
string —$messageType
setMessage()
Set the content of the message
public
setMessage(mixed $message) : void
Parameters
- $message : mixed
setType()
Set the type of the message
public
setType(mixed $messageType) : void
Parameters
- $messageType : mixed