MediaWiki master
MediaWiki\User\WelcomeNotification Class Reference

Inherits MediaWiki\Notification\Notification, and MediaWiki\Notification\AgentAware.

Collaboration diagram for MediaWiki\User\WelcomeNotification:

Public Member Functions

 __construct (private readonly UserIdentity $agent)
 
 getAgent ()
 
- 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.
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file WelcomeNotification.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\WelcomeNotification::__construct ( private readonly UserIdentity $agent)

Definition at line 14 of file WelcomeNotification.php.

Member Function Documentation

◆ getAgent()

MediaWiki\User\WelcomeNotification::getAgent ( )
Returns
UserIdentity The user responsible for triggering this notification.

Implements MediaWiki\Notification\AgentAware.

Definition at line 18 of file WelcomeNotification.php.


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