Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
digitalascetic/notifications / Service / NotificationEvent.php
Size: Mime:
<?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;
    }
}