public function updateDomain($domainname, $addInfo, $removeInfo, $updateInfo) { # # Object create structure # $this->domainobject->appendChild($this->createElement('domain:name', $domainname)); if ($addInfo instanceof eppDomain) { $addcmd = $this->createElement('domain:add'); $this->addDomainChanges($addcmd, $addInfo); $this->domainobject->appendChild($addcmd); } if ($removeInfo instanceof eppDomain) { $remcmd = $this->createElement('domain:rem'); $this->addDomainChanges($remcmd, $removeInfo); $this->domainobject->appendChild($remcmd); } if ($updateInfo instanceof eppDomain) { $chgcmd = $this->createElement('domain:chg'); $this->addDomainChanges($chgcmd, $updateInfo); $this->domainobject->appendChild($chgcmd); } }