@@ -19,7 +19,10 @@ interface WeatherInterface
1919 * @param string $cityName
2020 * @param string $countryCode
2121 *
22- * @return mixed
22+ * @return string
23+ *
24+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
25+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
2326 */
2427 public function fetchWeatherDataByCityName ($ cityName , $ countryCode = '' );
2528
@@ -28,17 +31,23 @@ public function fetchWeatherDataByCityName($cityName, $countryCode = '');
2831 *
2932 * @param int $cityId
3033 *
31- * @return mixed
34+ * @return string
35+ *
36+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
37+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
3238 */
3339 public function fetchWeatherDataByCityId ($ cityId );
3440
3541 /**
3642 * Call current weather data for one location by geographic coordinates
3743 *
38- * @param int $latitude
39- * @param int $longitude
44+ * @param float $latitude
45+ * @param float $longitude
4046 *
41- * @return mixed
47+ * @return string
48+ *
49+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
50+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
4251 */
4352 public function fetchWeatherDataByGeographicCoordinates ($ latitude , $ longitude );
4453
@@ -49,7 +58,10 @@ public function fetchWeatherDataByGeographicCoordinates($latitude, $longitude);
4958 * @param int $zipCode
5059 * @param string $countryCode
5160 *
52- * @return mixed
61+ * @return string
62+ *
63+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
64+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
5365 */
5466 public function fetchWeatherDataByZipCode ($ zipCode , $ countryCode = '' );
5567
@@ -59,7 +71,10 @@ public function fetchWeatherDataByZipCode($zipCode, $countryCode = '');
5971 * @param array $boundingBox Longitude-left,latitude-bottom,longitude-right,latitude-top
6072 * @param string $cluster
6173 *
62- * @return mixed
74+ * @return string
75+ *
76+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
77+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
6378 */
6479 public function fetchWeatherDataForCitiesWithinRectangleZone (array $ boundingBox , $ cluster = 'yes ' );
6580
@@ -71,7 +86,10 @@ public function fetchWeatherDataForCitiesWithinRectangleZone(array $boundingBox,
7186 * @param string $cluster
7287 * @param int $numberOfCities
7388 *
74- * @return mixed
89+ * @return string
90+ *
91+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
92+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
7593 */
7694 public function fetchWeatherDataForCitiesInCycle ($ latitude , $ longitude , $ cluster = 'yes ' , $ numberOfCities = 10 );
7795
@@ -80,7 +98,10 @@ public function fetchWeatherDataForCitiesInCycle($latitude, $longitude, $cluster
8098 *
8199 * @param array $cities
82100 *
83- * @return mixed
101+ * @return string
102+ *
103+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotAuthorizedException
104+ * @throws \Netgen\Bundle\OpenWeatherMapBundle\Exception\NotFoundException
84105 */
85106 public function fetchWeatherDataForSeveralCityIds (array $ cities );
86107}
0 commit comments