|
MediaWiki master
|
An object representing notification with list of recipients. More...
Public Member Functions | |
| __construct ( $notification, $recipientSet) | |
| equals (NotificationEnvelope $envelope) | |
| Syntax sugar, allows easy check if two envelopes point to the same thing. | |
| getNotification () | |
| getRecipientSet () | |
| hasAgent () | |
| Check if the Notification has defined agent. | |
An object representing notification with list of recipients.
Definition at line 10 of file NotificationEnvelope.php.
| MediaWiki\Notification\NotificationEnvelope::__construct | ( | $notification, | |
| $recipientSet ) |
| T | $notification | |
| RecipientSet | $recipientSet |
Definition at line 20 of file NotificationEnvelope.php.
| MediaWiki\Notification\NotificationEnvelope::equals | ( | NotificationEnvelope | $envelope | ) |
Syntax sugar, allows easy check if two envelopes point to the same thing.
Definition at line 39 of file NotificationEnvelope.php.
| MediaWiki\Notification\NotificationEnvelope::getNotification | ( | ) |
Definition at line 28 of file NotificationEnvelope.php.
| MediaWiki\Notification\NotificationEnvelope::getRecipientSet | ( | ) |
Definition at line 32 of file NotificationEnvelope.php.
| MediaWiki\Notification\NotificationEnvelope::hasAgent | ( | ) |
Check if the Notification has defined agent.
Utility method for a very common check where middleware filters Notifications from specific agent.
Definition at line 49 of file NotificationEnvelope.php.