| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | class WeatherMock |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Function that takes an coordinate and gets upcomming weather. |
||
| 8 | * |
||
| 9 | * @SuppressWarnings(PHPMD.ExcessiveMethodLength) |
||
| 10 | * @return array $result |
||
| 11 | */ |
||
| 12 | 1 | public function getWeatherUpcoming(): array |
|
| 13 | { |
||
| 14 | 1 | $json = file_get_contents(ANAX_INSTALL_PATH . "/src/Mock/weather-upcoming.json"); |
|
| 15 | |||
| 16 | 1 | return [$json]; |
|
| 17 | } |
||
| 18 | /** |
||
| 19 | * Function that takes an coordinate and get past 30 days weather |
||
| 20 | * |
||
| 21 | * |
||
| 22 | * @return array $result |
||
| 23 | */ |
||
| 24 | 1 | public function getWeatherPast(): array |
|
| 30 | } |
||
| 31 | } |
||
| 32 |