| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 1 | public function lists($id = null) |
|
| 36 | { |
||
| 37 | 1 | $link = $this->getLink(); |
|
| 38 | |||
| 39 | 1 | if ($id !== null) { |
|
| 40 | $link .= '?id' . $id; |
||
| 41 | } |
||
| 42 | |||
| 43 | 1 | $this->request->performRequest($link, [], 'application/json', 'GET'); |
|
| 44 | 1 | $this->response = $this->request->getResponse(); |
|
| 45 | |||
| 46 | 1 | return $this->parseResponseToEntities(); |
|
| 47 | } |
||
| 48 | |||
| 70 | } |