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
96 lines
1.9 KiB
PHP
96 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Notification;
|
|
|
|
interface NotificationBuilderInterface
|
|
{
|
|
/**
|
|
* @param string $type
|
|
* @param string|null $message
|
|
* @param array $options
|
|
*
|
|
* @return NotificationBuilder
|
|
*/
|
|
public function type($type, $message = null, array $options = array());
|
|
|
|
/**
|
|
* @param string $message
|
|
*
|
|
* @return NotificationBuilder
|
|
*/
|
|
public function message($message);
|
|
|
|
/**
|
|
* @param array<string, mixed> $options
|
|
* @param bool $merge
|
|
*
|
|
* @return NotificationBuilder
|
|
*/
|
|
public function options($options, $merge = true);
|
|
|
|
/**
|
|
* @param string $name
|
|
* @param mixed $value
|
|
*
|
|
* @return NotificationBuilder
|
|
*/
|
|
public function option($name, $value);
|
|
|
|
/**
|
|
* @return NotificationInterface
|
|
*/
|
|
public function getNotification();
|
|
|
|
/**
|
|
* @param string|null $message
|
|
* @param array $options
|
|
*
|
|
* @return self
|
|
*/
|
|
public function success($message = null, array $options = array());
|
|
|
|
/**
|
|
* @param string|null $message
|
|
* @param array $options
|
|
*
|
|
* @return self
|
|
*/
|
|
public function error($message = null, array $options = array());
|
|
|
|
|
|
/**
|
|
* @param string|null $message
|
|
* @param array $options
|
|
*
|
|
* @return self
|
|
*/
|
|
public function info($message = null, array $options = array());
|
|
|
|
/**
|
|
* @param string|null $message
|
|
* @param array $options
|
|
*
|
|
* @return self
|
|
*/
|
|
public function warning($message = null, array $options = array());
|
|
|
|
/**
|
|
* @param int $priority
|
|
*
|
|
* @return self
|
|
*/
|
|
public function priority($priority);
|
|
|
|
/**
|
|
* @return self
|
|
*/
|
|
public function keep();
|
|
|
|
/**
|
|
* @param int $amount
|
|
*
|
|
* @return self
|
|
*/
|
|
public function hops($amount);
|
|
}
|