You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
498 B
PHP
28 lines
498 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Test\Unit\Controllers\Stub;
|
|
|
|
use Engelsystem\Controllers\HasUserNotifications;
|
|
|
|
class HasUserNotificationsImplementation
|
|
{
|
|
use HasUserNotifications;
|
|
|
|
/**
|
|
* @param string|array $value
|
|
* @param string $type
|
|
*/
|
|
public function add($value, $type = 'messages')
|
|
{
|
|
$this->addNotification($value, $type);
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function get(): array
|
|
{
|
|
return $this->getNotifications();
|
|
}
|
|
}
|