Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class Request extends HttpRequest implements RequestInterface |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 2 | public function getRpcId() |
|
26 | { |
||
27 | 2 | return $this->getFieldFromBody('id'); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 3 | public function getRpcMethod() |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 2 | public function getRpcParams() |
|
42 | { |
||
43 | 2 | return $this->getFieldFromBody('params'); |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 2 | public function getRpcVersion() |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param string $key |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | 9 | protected function getFieldFromBody($key) |
|
66 |