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();
}