2020-03-01 18:21:16 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function get(): array
|
|
|
|
{
|
|
|
|
return $this->getNotifications();
|
|
|
|
}
|
|
|
|
}
|