2020-03-01 18:21:16 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-03-01 18:21:16 +01:00
|
|
|
namespace Engelsystem\Test\Unit\Controllers\Stub;
|
|
|
|
|
|
|
|
use Engelsystem\Controllers\HasUserNotifications;
|
2023-02-02 22:53:51 +01:00
|
|
|
use Engelsystem\Controllers\NotificationType;
|
2020-03-01 18:21:16 +01:00
|
|
|
|
|
|
|
class HasUserNotificationsImplementation
|
|
|
|
{
|
|
|
|
use HasUserNotifications;
|
|
|
|
|
2023-02-02 22:53:51 +01:00
|
|
|
public function add(string|array $value, NotificationType $type = NotificationType::MESSAGE): void
|
2020-03-01 18:21:16 +01:00
|
|
|
{
|
|
|
|
$this->addNotification($value, $type);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function get(): array
|
|
|
|
{
|
|
|
|
return $this->getNotifications();
|
|
|
|
}
|
|
|
|
}
|