| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function latest() |
||
| 17 | { |
||
| 18 | $this->request->checkLoggedIn(); |
||
| 19 | |||
| 20 | $data = ["options" => ['allow_state' => true]]; |
||
| 21 | $request = Request::createRequestData($data); |
||
| 22 | |||
| 23 | $getString = UrlHelper::buildRequestString($request); |
||
| 24 | $response = $this->request->exec(UrlHelper::RESOURCE_GET_LATEST_NEWS . "?{$getString}"); |
||
| 25 | |||
| 26 | return $this->response->getData($response); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |