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

24 lines
447 B
PHP
Raw Normal View History

<?php
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);
}
/**
* @return array
*/
public function get(): array
{
return $this->getNotifications();
}
}