Metaregistrar\EPP\eppUpdateContactRequest::updateContact PHP Method

updateContact() public method

public updateContact ( string $contactid, eppContact $addInfo, eppContact $removeInfo, eppContact $updateInfo )
$contactid string
$addInfo eppContact
$removeInfo eppContact
$updateInfo eppContact
    public function updateContact($contactid, $addInfo, $removeInfo, $updateInfo)
    {
        #
        # Object create structure
        #
        $this->contactobject->appendChild($this->createElement('contact:id', $contactid));
        if ($updateInfo instanceof eppContact) {
            $chgcmd = $this->createElement('contact:chg');
            $this->addContactChanges($chgcmd, $updateInfo);
            $this->contactobject->appendChild($chgcmd);
        }
        if ($removeInfo instanceof eppContact) {
            $remcmd = $this->createElement('contact:rem');
            $this->addContactStatus($remcmd, $removeInfo);
            $this->contactobject->appendChild($remcmd);
        }
        if ($addInfo instanceof eppContact) {
            $addcmd = $this->createElement('contact:add');
            $this->addContactStatus($addcmd, $addInfo);
            $this->contactobject->appendChild($addcmd);
        }
    }