Create a Location object from a SimpleXMLElement.
static
Location
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement.
Create a Location object.
Location
__construct
(
string $city,
string $country,
string $street,
integer $postalCode,
Point $point,
string $timezone)
-
string
$city: A city name.
-
string
$country: An ISO 3166-1 country code.
-
string
$street: A street name.
-
integer
$postalCode: A postal code.
-
Point
$point: A Point object.
-
string
$timezone: A timezone string.
Returns the locations city.
string
getCity
()
Returns the locations country.
string
getCountry
()
Returns the locations geographical point.
string
getPoint
()
Returns the locations postal code.
integer
getPostalCode
()
Returns the locations street.
string
getStreet
()
Returns the locations timezone.
string
getTimezone
()