| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | abstract class AbstractOnMethodEvent implements JsonRpcServerEvent |
||
| 12 | { |
||
| 13 | /** @var JsonRpcRequest */ |
||
| 14 | private $jsonRpcRequest; |
||
| 15 | /** @var JsonRpcMethodInterface */ |
||
| 16 | private $method; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param JsonRpcMethodInterface $method |
||
| 20 | * @param JsonRpcRequest|null $jsonRpcRequest |
||
| 21 | */ |
||
| 22 | public function __construct(JsonRpcMethodInterface $method, JsonRpcRequest $jsonRpcRequest) |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return JsonRpcRequest |
||
| 30 | */ |
||
| 31 | public function getJsonRpcRequest() : JsonRpcRequest |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return JsonRpcMethodInterface |
||
| 38 | */ |
||
| 39 | public function getMethod() : JsonRpcMethodInterface |
||
| 44 |