PHP Class Cmfcmf\OpenWeatherMap\CurrentWeather

Show file Open project: cmfcmf/openweathermap-php-api

Public Properties

Property Type Description
$city Cmfcmf\OpenWeatherMap\Util\City The city object.
$clouds Cmfcmf\OpenWeatherMap\Util\Unit
$humidity Cmfcmf\OpenWeatherMap\Util\Unit
$lastUpdate DateTime
$precipitation Cmfcmf\OpenWeatherMap\Util\Unit
$pressure Cmfcmf\OpenWeatherMap\Util\Unit
$sun Cmfcmf\OpenWeatherMap\Util\Sun
$temperature Cmfcmf\OpenWeatherMap\Util\Temperature The temperature object.
$weather Cmfcmf\OpenWeatherMap\Util\Weather
$wind Cmfcmf\OpenWeatherMap\Util\Wind

Public Methods

Method Description
__construct ( mixed $data, string $units ) Create a new weather object.

Method Details

__construct() public method

Create a new weather object.
public __construct ( mixed $data, string $units )
$data mixed
$units string

Property Details

$city public property

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

$clouds public property

public Unit,Cmfcmf\OpenWeatherMap\Util $clouds
return Cmfcmf\OpenWeatherMap\Util\Unit

$humidity public property

public Unit,Cmfcmf\OpenWeatherMap\Util $humidity
return Cmfcmf\OpenWeatherMap\Util\Unit

$lastUpdate public property

public DateTime $lastUpdate
return DateTime

$precipitation public property

public Unit,Cmfcmf\OpenWeatherMap\Util $precipitation
return Cmfcmf\OpenWeatherMap\Util\Unit

$pressure public property

public Unit,Cmfcmf\OpenWeatherMap\Util $pressure
return Cmfcmf\OpenWeatherMap\Util\Unit

$sun public property

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

$temperature public property

The temperature object.
public Temperature,Cmfcmf\OpenWeatherMap\Util $temperature
return Cmfcmf\OpenWeatherMap\Util\Temperature

$weather public property

public Weather,Cmfcmf\OpenWeatherMap\Util $weather
return Cmfcmf\OpenWeatherMap\Util\Weather

$wind public property

public Wind,Cmfcmf\OpenWeatherMap\Util $wind
return Cmfcmf\OpenWeatherMap\Util\Wind