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