Metaregistrar\EPP\eppDeleteDomainRequest::setDomain PHP Method

setDomain() public method

public setDomain ( eppDomain $domain )
$domain eppDomain
    public function setDomain(eppDomain $domain)
    {
        if (!strlen($domain->getDomainname())) {
            throw new eppException('eppDeleteRequest domain object does not contain a valid domain name');
        }
        #
        # Object delete structure
        #
        $this->domainobject->appendChild($this->createElement('domain:name', $domain->getDomainname()));
    }