Class Location

Description

Represents a geographical location (address, coordinate, timezone).

Located in /src/Location.php (line 9)


	
			
Method Summary
static Location fromSimpleXMLElement ( $xml)
Location __construct (string $city, string $country, string $street, integer $postalCode, Point $point, string $timezone)
string getCity ()
string getCountry ()
string getPoint ()
integer getPostalCode ()
string getStreet ()
string getTimezone ()
Methods
static method fromSimpleXMLElement (line 136)

Create a Location object from a SimpleXMLElement.

  • return: A Location object.
  • access: public
static Location fromSimpleXMLElement ( $xml)
  • SimpleXMLElement $xml: A SimpleXMLElement.
Constructor __construct (line 63)

Create a Location object.

  • access: public
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.
getCity (line 78)

Returns the locations city.

  • return: A city name.
  • access: public
string getCity ()
getCountry (line 87)

Returns the locations country.

  • return: An ISO 3166-1 country code.
  • access: public
string getCountry ()
getPoint (line 114)

Returns the locations geographical point.

  • return: A Point object.
  • access: public
string getPoint ()
getPostalCode (line 105)

Returns the locations postal code.

  • return: A postal code.
  • access: public
integer getPostalCode ()
getStreet (line 96)

Returns the locations street.

  • return: A street name.
  • access: public
string getStreet ()
getTimezone (line 123)

Returns the locations timezone.

  • return: A timezone string.
  • access: public
string getTimezone ()

Documentation generated on Mon, 22 Dec 2008 16:57:39 +0100 by phpDocumentor 1.4.1