Files
php-flasher/Notification/NotificationInterface.php
T
KHOUBZA Younes 26d4ca787f update namespace
2020-12-03 09:15:47 +01:00

63 lines
1.1 KiB
PHP

<?php
namespace Flasher\Prime\Notification;
interface NotificationInterface
{
const TYPE_SUCCESS = 'success';
const TYPE_ERROR = 'error';
const TYPE_INFO = 'info';
const TYPE_WARNING = 'warning';
/**
* @return string
*/
public function getType();
/**
* @param string $type
*/
public function setType($type);
/**
* @return string
*/
public function getMessage();
/**
* @param string $message
*/
public function setMessage($message);
/**
* @return array<string, mixed>
*/
public function getOptions();
/**
* @param array<string, mixed> $options
*/
public function setOptions(array $options);
/**
* @param string $name
* @param mixed $default
*
* @return mixed
*/
public function getOption($name, $default = null);
/**
* @param string $name
* @param mixed $value
*
* @return mixed
*/
public function setOption($name, $value);
/**
* @param string $name
*/
public function unsetOption($name);
}