You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
63 lines
1.1 KiB
PHP
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);
|
|
}
|