Horde_Service_Weather_Station
in package
Horde_Service_Weather_Station class
Tags
Table of Contents
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : mixed
- $ : string
- $ : string
- $ : string
- $ : string
- $_properties : array<string|int, mixed>
- Local properties array.
- __construct() : mixed
- Const'r
- __get() : mixed
- Accessor
- __set() : mixed
- Setter.
- getOffset() : int
- Return the CURRENT offset from UTC for this station as provided by the API.
Properties
$
public
string
$
name The station's common name.
$
public
string
$
city The city.
$
public
string
$
state The state.
$
public
string
$
country The country's iso3166 name (if available).
$
public
string
$
country_name The country's common name.
$
public
mixed
$
tz The timezone name, or offset from UTC depending on the API. @see self::getOffset()
$
public
string
$
lat The lattitude (if available).
$
public
string
$
lon The longitude (if available).
$
public
string
$
zip The postal code.
$
public
string
$
code The internal identifier for the API.
$_properties
Local properties array.
protected
array<string|int, mixed>
$_properties
= array()
Methods
__construct()
Const'r
public
__construct([array<string|int, mixed> $properties = array() ]) : mixed
Parameters
- $properties : array<string|int, mixed> = array()
-
The properties for the station.
Return values
mixed —__get()
Accessor
public
__get(string $property) : mixed
Parameters
- $property : string
-
The property to return.
Return values
mixed —The value of requested property.
__set()
Setter.
public
__set(string $property, mixed $value) : mixed
Parameters
- $property : string
-
The property name.
- $value : mixed
-
The value to set $property to.
Return values
mixed —getOffset()
Return the CURRENT offset from UTC for this station as provided by the API.
public
getOffset() : int
Tags
Return values
int —The current offset from UTC.