StocksNew/vendor/php-flasher/flasher/Notification/NotificationInterface.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

93 lines
1.6 KiB
PHP

<?php
/*
* This file is part of the PHPFlasher package.
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
*/
namespace Flasher\Prime\Notification;
interface NotificationInterface
{
const SUCCESS = 'success';
const ERROR = 'error';
const INFO = 'info';
const WARNING = 'warning';
/**
* @return string|null
*/
public function getType();
/**
* @param string|null $type
*
* @return static
*/
public function setType($type);
/**
* @return string|null
*/
public function getMessage();
/**
* @param string|null $message
*
* @return static
*/
public function setMessage($message);
/**
* @return string|null
*/
public function getTitle();
/**
* @param string|null $title
*
* @return static
*/
public function setTitle($title);
/**
* @return array<string, mixed>
*/
public function getOptions();
/**
* @param array<string, mixed> $options
*
* @return static
*/
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 static
*/
public function setOption($name, $value);
/**
* @param string $name
*
* @return static
*/
public function unsetOption($name);
/**
* @return array<string, mixed>
*/
public function toArray();
}