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