Repository URL to install this package:
|
Version:
6.2.6 ▾
|
<?php
namespace DigitalAscetic\NotificationsBundle\Service;
use DigitalAscetic\NotificationsBundle\Entity\Notification;
use Symfony\Contracts\EventDispatcher\Event;
class NotificationEvent extends Event
{
const EVENT_NOTIFICATION_PERSISTED = 'digital_ascetic.notification.persisted';
const EVENT_NOTIFICATION_UPDATED = 'digital_ascetic.notification.updated';
/** @var Notification */
private $notification;
/**
* NotificationEvent constructor.
* @param Notification $notification
*/
public function __construct(Notification $notification)
{
$this->notification = $notification;
}
/**
* @return Notification
*/
public function getNotification(): Notification
{
return $this->notification;
}
}