mautic / app /bundles /NotificationBundle /Event /NotificationEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\NotificationBundle\Event;
use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\NotificationBundle\Entity\Notification;
class NotificationEvent extends CommonEvent
{
/**
* @param bool $isNew
*/
public function __construct(Notification $notification, $isNew = false)
{
$this->entity = $notification;
$this->isNew = $isNew;
}
/**
* Returns the Notification entity.
*
* @return Notification
*/
public function getNotification()
{
return $this->entity;
}
/**
* Sets the Notification entity.
*/
public function setNotification(Notification $notification): void
{
$this->entity = $notification;
}
}