engelsystem/tests/Unit/Controllers/Stub/HasUserNotificationsImpleme...

24 lines
507 B
PHP
Raw Permalink Normal View History

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