function __construct($checkrequest, $namespacesinroot = true)
{
$this->setNamespacesinroot($namespacesinroot);
parent::__construct(eppRequest::TYPE_CHECK);
if ($checkrequest instanceof eppDomain) {
$this->setDomainNames(array($checkrequest));
} else {
if (is_array($checkrequest)) {
if ($checkrequest[0] instanceof eppDomain) {
$this->setDomainNames($checkrequest);
} else {
if (is_string($checkrequest[0])) {
$this->setDomainNames($checkrequest);
}
}
}
}
$this->addSessionId();
}