Metaregistrar\EPP\eppUpdateDomainRequest::updateDomain PHP Method

updateDomain() public method

public updateDomain ( string $domainname, eppDomain $addInfo, eppDomain $removeInfo, eppDomain $updateInfo ) : domElement
$domainname string
$addInfo eppDomain
$removeInfo eppDomain
$updateInfo eppDomain
return domElement
    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);
        }
    }