Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | trait JsonRpcServerDispatcherAwareTrait |
||
11 | { |
||
12 | /** @var JsonRpcServerDispatcherInterface */ |
||
13 | private $jsonRpcServerDispatcher = null; |
||
14 | |||
15 | /** |
||
16 | * @param JsonRpcServerDispatcherInterface $jsonRpcServerDispatcher |
||
17 | */ |
||
18 | 6 | public function setJsonRpcServerDispatcher(JsonRpcServerDispatcherInterface $jsonRpcServerDispatcher) : void |
|
21 | 6 | } |
|
22 | |||
23 | /** |
||
24 | * @param string $eventName |
||
25 | * @param JsonRpcServerEvent|null $event |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 20 | protected function dispatchJsonRpcEvent(string $eventName, JsonRpcServerEvent $event = null) : void |
|
37 |