| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class News extends Api |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Get the latest (paginated) news and analysis for all assets. |
||
| 17 | * |
||
| 18 | * @param array $params |
||
| 19 | * @return array |
||
| 20 | * @throws Exception |
||
| 21 | */ |
||
| 22 | 2 | public function getAll($params = []): array |
|
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the latest (paginated) news and analysis for an asset. |
||
| 30 | * |
||
| 31 | * @param string $assetKey |
||
| 32 | * @param array $params |
||
| 33 | * @return array |
||
| 34 | * @throws Exception |
||
| 35 | */ |
||
| 36 | 2 | public function getForAsset(string $assetKey, array $params = []): array |
|
| 44 |