text: <?php
  /**
   * Author: Nil Portugués Calderó <contact@nilportugues.com>
   * Date: 29/02/16
   * Time: 23:55.
   *
   * For the full copyright and license information, please view the LICENSE
   * file that was distributed with this source code.
   */
  
  namespace NilPortugues\MessageBus\EventBus\Contracts;
  
  /**
   * Interface EventBusMiddleware.
   */
  interface EventBusMiddleware
  {
      /**
       * @param Event         $event
       * @param callable|null $next
       */
      public function __invoke(Event $event, callable $next = null);
  }
  