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