Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function handle(JsonRpcRequest $jsonRpcRequest) : JsonRpcResponse |
||
35 | { |
||
36 | try { |
||
37 | return $this->responseCreator->createResultResponse( |
||
38 | $this->methodManager->apply( |
||
39 | $jsonRpcRequest->getMethod(), |
||
40 | $jsonRpcRequest->getParamList() |
||
41 | ), |
||
42 | $jsonRpcRequest |
||
43 | ); |
||
44 | } catch (\Exception $exception) { |
||
45 | return $this->responseCreator->createErrorResponse($exception, $jsonRpcRequest); |
||
46 | } |
||
49 |