public function setVoice($voice) { if ($voice) { $this->contactobject->appendChild($this->createElement('contact:voice', $voice)); } }