This commit is contained in:
2022-04-22 11:41:38 +02:00
parent abc3caee00
commit f7d9551dc1
6 changed files with 53 additions and 16 deletions

View File

@@ -1,5 +1,14 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\MainBundle\Notification;
use Chill\MainBundle\Entity\Notification;
@@ -8,11 +17,6 @@ class NotificationPersister implements NotificationPersisterInterface
{
private array $waitingNotifications = [];
public function persist(Notification $notification): void
{
$this->waitingNotifications[] = $notification;
}
/**
* @return array|Notification[]
*/
@@ -20,4 +24,9 @@ class NotificationPersister implements NotificationPersisterInterface
{
return $this->waitingNotifications;
}
public function persist(Notification $notification): void
{
$this->waitingNotifications[] = $notification;
}
}