createElement('Geocode'); $node->appendChild($document->createElement('Latitude', $this->getLatitude())); $node->appendChild($document->createElement('Longitude', $this->getLongitude())); return $node; } /** * @return mixed */ public function getLatitude() { return $this->latitude; } /** * @param mixed $latitude */ public function setLatitude($latitude) { $this->latitude = $latitude; } /** * @return mixed */ public function getLongitude() { return $this->longitude; } /** * @param mixed $longitude */ public function setLongitude($longitude) { $this->longitude = $longitude; } }