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

23 lines
436 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Engelsystem\Test\Unit\Controllers\Stub;
use Engelsystem\Controllers\HasUserNotifications;
class HasUserNotificationsImplementation
{
use HasUserNotifications;
public function add(string|array $value, string $type = 'messages'): void
{
$this->addNotification($value, $type);
}
public function get(): array
{
return $this->getNotifications();
}
}