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