Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MessageDispatchingEventDispatcher implements EventDispatcher |
||
8 | { |
||
9 | private MessageDispatcher $dispatcher; |
||
10 | private MessageDecorator $decorator; |
||
11 | |||
12 | public function __construct(MessageDispatcher $dispatcher, ?MessageDecorator $decorator = null) |
||
13 | { |
||
14 | $this->dispatcher = $dispatcher; |
||
15 | $this->decorator = $decorator ?: new DefaultHeadersDecorator(); |
||
16 | } |
||
17 | |||
18 | public function dispatch(object ...$events): void |
||
21 | 2 | } |
|
22 | 2 | ||
23 | 2 | public function dispatchWithHeaders(array $headers, object ...$events): void |
|
34 |