Message
class Message (View source)
An object representation of a generic message. Usually, you will use Error, Warning or Notice instead of this one.
Constants
SEVERITY_NOTICE |
|
SEVERITY_WARNING |
|
SEVERITY_ERROR |
|
SEVERITY_OK |
|
Properties
protected string | $message | The error message, could also be a key for translation. |
|
protected string | $title | An optional title for the message (used eg. in flashMessages). |
|
protected int | $code | The error code. |
|
protected array | $arguments | The message arguments. Will be replaced in the message body. |
|
protected string | $severity | The severity of this message ('OK'), overwrite in your own implementation. |
Methods
Constructs this error
Returns the error message
No description
Returns the error code
No description
No description
No description
No description
No description
Converts this error into a string
Details
__construct(string $message, int|null $code = null, array $arguments = [], string $title = '')
Constructs this error
string
getMessage()
Returns the error message
bool
hasCode()
No description
int
getCode()
Returns the error code
array
getArguments()
No description
bool
hasTitle()
No description
string
getTitle()
No description
string
getSeverity()
No description
string
render()
No description
string
__toString()
Converts this error into a string