Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 91.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class PHPTransport implements TransportInterface |
||
15 | { |
||
16 | private EventEmitterInterface $emitter; |
||
17 | |||
18 | 2 | public function __construct(?EventEmitterInterface $emitter = null) |
|
19 | { |
||
20 | 2 | $this->emitter = $emitter ?? new EventEmitter(); |
|
21 | 2 | } |
|
22 | |||
23 | 1 | public function publish(string $topic, Message $message): PromiseInterface |
|
27 | } |
||
28 | |||
29 | 1 | public function subscribe(string $subscribedTopic, callable $callback): PromiseInterface |
|
40 |