Metaregistrar\EPP\eppHostRequest::__construct PHP Метод

__construct() публичный Метод

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