| Total Complexity | 1 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class NotificationEvent extends AbstractEvent { |
||
| 24 | |||
| 25 | use NotificationTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Event "danger". |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | const DANGER = "wbw.core.event.notification.danger"; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Event "info". |
||
| 36 | * |
||
| 37 | 50 | * @var string |
|
| 38 | 50 | */ |
|
| 39 | 50 | const INFO = "wbw.core.event.notification.info"; |
|
| 40 | 50 | ||
| 41 | /** |
||
| 42 | * Event "success". |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | const SUCCESS = "wbw.core.event.notification.success"; |
||
| 47 | 30 | ||
| 48 | 30 | /** |
|
| 49 | * Event "warning". |
||
| 50 | * |
||
| 51 | * @var string |
||
| 52 | */ |
||
| 53 | const WARNING = "wbw.core.event.notification.warning"; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Constructor. |
||
| 57 | 50 | * |
|
| 58 | 50 | * @param string $eventName The event name. |
|
| 59 | 50 | * @param NotificationInterface $notification The notification. |
|
| 60 | */ |
||
| 61 | public function __construct(string $eventName, NotificationInterface $notification) { |
||
| 67 |