MediaWiki master
MediaWiki\Notification\Types\SimpleNotification Class Reference

A simple notification that has only a message presented to a user. More...

Inherits MediaWiki\Notification\Notification.

Collaboration diagram for MediaWiki\Notification\Types\SimpleNotification:

Public Member Functions

 __construct (MessageSpecifier $message)
 
 getMessage ()
 
- Public Member Functions inherited from MediaWiki\Notification\Notification
 __construct (string $type, array $custom=[])
 Base for Notifications.
 
 getProperties ()
 Retrieve Notification properties.
 
 getType ()
 Get the Notification type.
 
 setProperty (string $key, $value)
 Sets a custom property to the notification.
 

Public Attributes

const TYPE = 'mediawiki.simple'
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Notification\Notification
string string $type
 

Detailed Description

A simple notification that has only a message presented to a user.

Stability: newable
Since
1.45

Definition at line 13 of file SimpleNotification.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Notification\Types\SimpleNotification::__construct ( MessageSpecifier $message)

Definition at line 19 of file SimpleNotification.php.

Member Function Documentation

◆ getMessage()

MediaWiki\Notification\Types\SimpleNotification::getMessage ( )

Definition at line 24 of file SimpleNotification.php.

Member Data Documentation

◆ TYPE

const MediaWiki\Notification\Types\SimpleNotification::TYPE = 'mediawiki.simple'

Definition at line 15 of file SimpleNotification.php.


The documentation for this class was generated from the following file: