country = (string)$xml->Country; $this->source = (string)$xml->Source; } public function getCountry() { return $this->country; } public function getSource() { return $this->source; } }