public function getForecast($city, $days = null, $parameters = [])
    {
        if ($days) {
            if (!empty($parameters)) {
                $parameters['cnt'] = $days;
            } else {
                $parameters = ['cnt' => $days];
            }
        }

        return $this->doGenericQuery('forecast/daily', $city, $parameters);
    }
public function getForecast($city, $days = null, $parameters = [])
    {
        if ($days) {
            if (!empty($parameters)) {
                $parameters['cnt'] = $days;
            } else {
                $parameters = ['cnt' => $days];
            }
        }

        return $this->doGenericQuery('forecast/daily', $city, $parameters);
    }
public function getForecast ( $ city , $ days = null , $ parameters = [ ] ) { if ( $ days ) { if ( ! empty ( $ parameters ) ) { $ parameters [ 'cnt' ] = $ days ; } else { $ parameters = [ 'cnt' => $ days ] ; } } return $ this -> doGenericQuery ( 'forecast/daily' , $ city , $ parameters ) ; }
Returns the forecast for a city.

@param string $city
@param int $days
@param array $parameters

@return stdClass
Returns the forecast for a city .