Metaregistrar\EPP\eppDomainRequest::__construct PHP Method

__construct() public method

public __construct ( $type )
    function __construct($type)
    {
        parent::__construct();
        $check = $this->createElement($type);
        $this->domainobject = $this->createElement('domain:' . $type);
        if (!$this->rootNamespaces()) {
            $this->domainobject->setAttribute('xmlns:domain', 'urn:ietf:params:xml:ns:domain-1.0');
        }
        $check->appendChild($this->domainobject);
        $this->getCommand()->appendChild($check);
    }