| Total Complexity | 2 | 
| Total Lines | 29 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 13 | class ExceptionHandler | ||
| 14 | { | ||
| 15 | use JsonRpcServerDispatcherAwareTrait; | ||
| 16 | |||
| 17 | /** @var ResponseCreator */ | ||
| 18 | private $responseCreator; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @param ResponseCreator $responseCreator | ||
| 22 | */ | ||
| 23 | 47 | public function __construct(ResponseCreator $responseCreator) | |
| 24 |     { | ||
| 25 | 47 | $this->responseCreator = $responseCreator; | |
| 26 | } | ||
| 27 | |||
| 28 | /** | ||
| 29 | * @param \Exception $exception | ||
| 30 | * @param JsonRpcRequest|null $fromRequest | ||
| 31 | * | ||
| 32 | * @return JsonRpcResponse | ||
| 33 | */ | ||
| 34 | 33 | public function getJsonRpcResponseFromException( | |
| 42 | } | ||
| 43 | } | ||
| 44 |