| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 39 | 3 | public function parse(ServerRequestInterface $request) |
|
| 40 | { |
||
| 41 | 3 | if (null === $this->parser) { |
|
| 42 | 1 | throw new \RuntimeException('Data parser not specified'); |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | if (null === $this->queryType) { |
|
| 46 | 1 | throw new \RuntimeException('Query type not specified'); |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | return $this->parser->parseQueryParams($request->getQueryParams(), $this->queryType); |
|
| 50 | } |
||
| 51 | |||
| 72 |