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
27 lines
604 B
PHP
27 lines
604 B
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Middleware;
|
|
|
|
use Flasher\Prime\Envelope;
|
|
use Flasher\Prime\Notification\NotificationInterface;
|
|
|
|
interface FlasherBusInterface
|
|
{
|
|
/**
|
|
* Executes the given command and optionally returns a value
|
|
*
|
|
* @param Envelope|NotificationInterface $envelope
|
|
* @param array $stamps
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function dispatch($envelope, $stamps = array());
|
|
|
|
/**
|
|
* @param MiddlewareInterface $middleware
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function addMiddleware(MiddlewareInterface $middleware);
|
|
}
|