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;
|
|
|
|
|
|
|
|
class HasUserNotificationsImplementation
|
|
|
|
{
|
|
|
|
use HasUserNotifications;
|
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function add(string|array $value, string $type = 'messages'): void
|
2020-03-01 18:21:16 +01:00
|
|
|
{
|
|
|
|
$this->addNotification($value, $type);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function get(): array
|
|
|
|
{
|
|
|
|
return $this->getNotifications();
|
|
|
|
}
|
|
|
|
}
|