| 1 | <?php |
||
| 22 | class NotificationEvent extends AbstractEvent { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Notification. |
||
| 26 | * |
||
| 27 | * @var NotificationInterface |
||
| 28 | */ |
||
| 29 | private $notification; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | * |
||
| 34 | * @param string $eventName The event name. |
||
| 35 | * @param NotificationInterface $notification The notification. |
||
| 36 | */ |
||
| 37 | public function __construct($eventName, NotificationInterface $notification) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the notification. |
||
| 44 | * |
||
| 45 | * @return NotificationInterface Returns the notification. |
||
| 46 | */ |
||
| 47 | public function getNotification() { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set the notification. |
||
| 53 | * |
||
| 54 | * @param NotificationInterface $notification The notification. |
||
| 55 | * @return NotificationEvent Returns this notification event. |
||
| 56 | */ |
||
| 57 | protected function setNotification(NotificationInterface $notification) { |
||
| 61 | |||
| 62 | } |
||
| 63 |