AbstractMessage

abstract class \TYPO3\CMS\Core\Messaging\AbstractMessage

Implements
JsonSerializable

A class used for any kind of messages.

Table of Contents

Interfaces

JsonSerializable

Properties

$message  : string
$severity  : ContextualFeedbackSeverity
$title  : string

Methods

__toString()  : string
Creates a string representation of the message. Useful for command line use.
getMessage()  : string
getSeverity()  : ContextualFeedbackSeverity
getTitle()  : string
jsonSerialize()  : array
setMessage()  : void
setSeverity()  : void
Sets the message' severity
setTitle()  : void

Properties

Methods

__toString()

Creates a string representation of the message. Useful for command line use.

public __toString() : string

Return values

string —

A string representation of the message.

getMessage()

public getMessage() : string

Return values

string

getTitle()

public getTitle() : string

Return values

string

jsonSerialize()

public jsonSerialize() : array

Return values

array —

Data which can be serialized by json_encode()

setMessage()

public setMessage(string $message) : void

Parameters

$message : string

setTitle()

public setTitle(string $title) : void

Parameters

$title : string
On this page