Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 $jsonRpcRequest |
||
21 | */ |
||
22 | 4 | public function __construct(JsonRpcMethodInterface $method, JsonRpcRequest $jsonRpcRequest) |
|
26 | 4 | } |
|
27 | |||
28 | /** |
||
29 | * @return JsonRpcRequest |
||
30 | */ |
||
31 | 2 | public function getJsonRpcRequest() : JsonRpcRequest |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return JsonRpcMethodInterface |
||
38 | */ |
||
39 | 2 | public function getMethod() : JsonRpcMethodInterface |
|
44 |