Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
1<?php
2
3declare(strict_types=1);
4
5namespace Tomaj\Hermes;
6
7use Tomaj\Hermes\Driver\UnknownPriorityException;
8
9interface EmitterInterface
10{
11    /**
12     * Emit new message
13     *
14     * @throws UnknownPriorityException
15     * @return $this
16     */
17    public function emit(MessageInterface $message, int $priority = Dispatcher::DEFAULT_PRIORITY): EmitterInterface;
18}