/**
  * Gets weather as Weather object
  * 
  * @param mixed (integer|string) $city
  * @return array of Weather Object
  */
 public function getWeatherObject($city)
 {
     // Cheking if cache is enabled
     if ($this->container->getParameter('pianosolo.weather.options.cache') === TRUE) {
         $cacheID = $city . 'wO';
         if (!($weather = $this->getCache($cacheID))) {
             $weather = $this->weatherService->getWeatherObject($city);
             $this->saveCache($cacheID, $weather);
         }
     } else {
         $weather = $this->weatherService->getWeatherObject($city);
     }
     return $weather;
 }
 /**
  * Gets weather as Weather object
  *
  * @param mixed (integer|string) $city
  * @return array of Weather Object
  */
 public function getWeatherObject($city)
 {
     // Checking if cache is enabled
     if ($this->cacheIsEnabled) {
         $cacheID = $city . 'wO';
         if (!($weather = $this->getCache($cacheID))) {
             $weather = $this->weatherService->getWeatherObject($city);
             $this->saveCache($cacheID, $weather);
         }
     } else {
         $weather = $this->weatherService->getWeatherObject($city);
     }
     return $weather;
 }