chill-bundles/src/Bundle/ChillMainBundle/Notification/NotificationPersisterInterface.php

23 lines
518 B
PHP

<?php
namespace Chill\MainBundle\Notification;
use Chill\MainBundle\Entity\Notification;
/**
* Store the notification
*
* Those notification will be stored into database by the kernel. This
* will also ensure that this happens outside of regular operations
* operated by the entity manager.
*/
interface NotificationPersisterInterface
{
public function persist(Notification $notification): void;
/**
* @return array|Notification[]
*/
public function getWaitingNotifications(): array;
}