mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
23 lines
518 B
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;
|
|
}
|