Metaregistrar\EPP\eppInfoHostRequest::__construct PHP Method

__construct() public method

public __construct ( $inforequest, $namespacesinroot = true )
    function __construct($inforequest, $namespacesinroot = true)
    {
        $this->setNamespacesinroot($namespacesinroot);
        parent::__construct(eppRequest::TYPE_INFO);
        if ($inforequest instanceof eppHost) {
            $this->setHost($inforequest);
        } else {
            throw new eppException('parameter of infohostrequest needs to be eppHost object');
        }
        $this->addSessionId();
    }