@@ -34,6 +34,9 @@ |
||
| 34 | 34 | $this->tmp = sys_get_temp_dir(); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $url |
|
| 39 | + */ |
|
| 37 | 40 | private function urlToPath($url) |
| 38 | 41 | { |
| 39 | 42 | $dir = $this->tmp . DIRECTORY_SEPARATOR . "OpenWeatherMapPHPAPI"; |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | /** |
| 203 | 203 | * Returns the current weather for a group of city ids. |
| 204 | 204 | * |
| 205 | - * @param array $ids The city ids to get weather information for |
|
| 205 | + * @param string $ids The city ids to get weather information for |
|
| 206 | 206 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
| 207 | 207 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
| 208 | 208 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * Returns the forecast for the place you specified. DANGER: Might return |
| 227 | 227 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
| 228 | 228 | * |
| 229 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 229 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 230 | 230 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
| 231 | 231 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
| 232 | 232 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * Returns the DAILY forecast for the place you specified. DANGER: Might return |
| 258 | 258 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
| 259 | 259 | * |
| 260 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 260 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 261 | 261 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
| 262 | 262 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
| 263 | 263 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | /** |
| 285 | 285 | * Returns the weather history for the place you specified. |
| 286 | 286 | * |
| 287 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 287 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 288 | 288 | * @param \DateTime $start |
| 289 | 289 | * @param int $endOrCount |
| 290 | 290 | * @param string $type Can either be 'tick', 'hour' or 'day'. |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * |
| 412 | 412 | * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
| 413 | 413 | * @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
| 414 | - * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
| 414 | + * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
|
| 415 | 415 | * receive weather history data for or an integer counting the number of |
| 416 | 416 | * reports requested. |
| 417 | 417 | * @param string $type The period of the weather history requested. Can be either be either "tick", |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | /** |
| 505 | 505 | * Returns the current uvi at the location you specified. |
| 506 | 506 | * |
| 507 | - * @param array|int|string $query The place to get weather information for. For possible values see below. |
|
| 507 | + * @param string[] $query The place to get weather information for. For possible values see below. |
|
| 508 | 508 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
| 509 | 509 | * |
| 510 | 510 | * @throws OpenWeatherMap\Exception If OpenWeatherMap returns an error. |
@@ -528,9 +528,8 @@ discard block |
||
| 528 | 528 | /** |
| 529 | 529 | * Returns the history uvi at the location you specified. |
| 530 | 530 | * |
| 531 | - * @param array|int|string $query The place to get weather information for. For possible values see below. |
|
| 531 | + * @param string[] $query The place to get weather information for. For possible values see below. |
|
| 532 | 532 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
| 533 | - * @param string $dateTime Your date time, default ''. See http://openweathermap.org/api/uvi for more details about date format. |
|
| 534 | 533 | * |
| 535 | 534 | * @throws OpenWeatherMap\Exception If OpenWeatherMap returns an error. |
| 536 | 535 | * @throws \InvalidArgumentException If an argument error occurs. |
@@ -599,10 +598,10 @@ discard block |
||
| 599 | 598 | * Build the url to fetch weather data from. |
| 600 | 599 | * |
| 601 | 600 | * @param $query |
| 602 | - * @param $units |
|
| 603 | - * @param $lang |
|
| 604 | - * @param $appid |
|
| 605 | - * @param $mode |
|
| 601 | + * @param string $units |
|
| 602 | + * @param string $lang |
|
| 603 | + * @param string $appid |
|
| 604 | + * @param string $mode |
|
| 606 | 605 | * @param string $url The url to prepend. |
| 607 | 606 | * |
| 608 | 607 | * @return bool|string The fetched url, false on failure. |
@@ -623,9 +622,8 @@ discard block |
||
| 623 | 622 | * @param $query |
| 624 | 623 | * @param $units |
| 625 | 624 | * @param $lang |
| 626 | - * @param $appid |
|
| 625 | + * @param string $appid |
|
| 627 | 626 | * @param $mode |
| 628 | - * @param string $url The url to prepend. |
|
| 629 | 627 | * |
| 630 | 628 | * @return bool|string The fetched url, false on failure. |
| 631 | 629 | */ |