PHP Class Cmfcmf\OpenWeatherMap\WeatherForecast

See also: Cmfcmf\OpenWeatherMap::getWeather() The function using it.
Inheritance: implements Iterator
Mostra file Open project: cmfcmf/openweathermap-php-api

Public Properties

Property Type Description
$city Cmfcmf\OpenWeatherMap\Util\City A city object.
$lastUpdate DateTime The time of the last update of this weather data.
$sun Cmfcmf\OpenWeatherMap\Util\Sun A sun object

Public Methods

Method Description
__construct ( $xml, string $units, integer $days ) Create a new Forecast object.
current ( )
key ( )
next ( )
rewind ( )
valid ( )

Method Details

__construct() public method

Create a new Forecast object.
public __construct ( $xml, string $units, integer $days )
$xml
$units string
$days integer How many days of forecast to receive.

current() public method

public current ( )

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$city public_oe property

A city object.
public City,Cmfcmf\OpenWeatherMap\Util $city
return Cmfcmf\OpenWeatherMap\Util\City

$lastUpdate public_oe property

The time of the last update of this weather data.
public DateTime $lastUpdate
return DateTime

$sun public_oe property

A sun object
public Sun,Cmfcmf\OpenWeatherMap\Util $sun
return Cmfcmf\OpenWeatherMap\Util\Sun