|
@@ -197,7 +197,7 @@ discard block |
|
|
block discarded – undo |
197
|
197
|
/** |
198
|
198
|
* Returns the current weather for a group of city ids. |
199
|
199
|
* |
200
|
|
- * @param array $ids The city ids to get weather information for |
|
200
|
+ * @param string[] $ids The city ids to get weather information for |
201
|
201
|
* @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
202
|
202
|
* @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
203
|
203
|
* @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
|
@@ -221,7 +221,7 @@ discard block |
|
|
block discarded – undo |
221
|
221
|
* Returns the forecast for the place you specified. DANGER: Might return |
222
|
222
|
* fewer results than requested due to a bug in the OpenWeatherMap API! |
223
|
223
|
* |
224
|
|
- * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
224
|
+ * @param string $query The place to get weather information for. For possible values see ::getWeather. |
225
|
225
|
* @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
226
|
226
|
* @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
227
|
227
|
* @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
|
@@ -252,7 +252,7 @@ discard block |
|
|
block discarded – undo |
252
|
252
|
* Returns the DAILY forecast for the place you specified. DANGER: Might return |
253
|
253
|
* fewer results than requested due to a bug in the OpenWeatherMap API! |
254
|
254
|
* |
255
|
|
- * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
255
|
+ * @param string $query The place to get weather information for. For possible values see ::getWeather. |
256
|
256
|
* @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
257
|
257
|
* @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
258
|
258
|
* @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
|
@@ -279,7 +279,7 @@ discard block |
|
|
block discarded – undo |
279
|
279
|
/** |
280
|
280
|
* Returns the weather history for the place you specified. |
281
|
281
|
* |
282
|
|
- * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
282
|
+ * @param string $query The place to get weather information for. For possible values see ::getWeather. |
283
|
283
|
* @param \DateTime $start |
284
|
284
|
* @param int $endOrCount |
285
|
285
|
* @param string $type Can either be 'tick', 'hour' or 'day'. |
|
@@ -314,7 +314,7 @@ discard block |
|
|
block discarded – undo |
314
|
314
|
* |
315
|
315
|
* @param float $lat The location's latitude. |
316
|
316
|
* @param float $lon The location's longitude. |
317
|
|
- * @param \DateTimeInterface $dateTime The date and time to request data for. |
|
317
|
+ * @param \DateTime $dateTime The date and time to request data for. |
318
|
318
|
* @param string $timePrecision This decides about the timespan OWM will look for the uv index. The tighter |
319
|
319
|
* the timespan, the less likely it is to get a result. Can be 'year', 'month', |
320
|
320
|
* 'day', 'hour', 'minute' or 'second', defaults to 'day'. |
|
@@ -431,7 +431,7 @@ discard block |
|
|
block discarded – undo |
431
|
431
|
* |
432
|
432
|
* @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
433
|
433
|
* @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
434
|
|
- * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
434
|
+ * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
435
|
435
|
* receive weather history data for or an integer counting the number of |
436
|
436
|
* reports requested. |
437
|
437
|
* @param string $type The period of the weather history requested. Can be either be either "tick", |
|
@@ -546,10 +546,10 @@ discard block |
|
|
block discarded – undo |
546
|
546
|
* Build the url to fetch weather data from. |
547
|
547
|
* |
548
|
548
|
* @param $query |
549
|
|
- * @param $units |
550
|
|
- * @param $lang |
551
|
|
- * @param $appid |
552
|
|
- * @param $mode |
|
549
|
+ * @param string $units |
|
550
|
+ * @param string $lang |
|
551
|
+ * @param string $appid |
|
552
|
+ * @param string $mode |
553
|
553
|
* @param string $url The url to prepend. |
554
|
554
|
* |
555
|
555
|
* @return bool|string The fetched url, false on failure. |