| Total Complexity | 3 | 
| Total Lines | 40 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | class OnMethodFailureEvent extends AbstractOnMethodEvent | ||
| 13 | { | ||
| 14 | const EVENT_NAME = 'json_rpc_server_skd.on_method_failure'; | ||
| 15 | |||
| 16 | /** @var \Exception */ | ||
| 17 | private $exception; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @param \Exception $exception | ||
| 21 | * @param JsonRpcMethodInterface $method | ||
| 22 | * @param JsonRpcRequest $jsonRpcRequest | ||
| 23 | */ | ||
| 24 | 9 | public function __construct( | |
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * @return \Exception | ||
| 36 | */ | ||
| 37 | 9 | public function getException() : \Exception | |
| 38 |     { | ||
| 39 | 9 | return $this->exception; | |
| 40 | } | ||
| 41 | |||
| 42 | /** | ||
| 43 | * @param \Exception $exception | ||
| 44 | * | ||
| 45 | * @return self | ||
| 46 | */ | ||
| 47 | 3 | public function setException(\Exception $exception) : self | |
| 52 | } | ||
| 53 | } | ||
| 54 |