public function __construct(\DOMDocument $dom)
{
parent::__construct($dom);
// store the document reference to avoid optimization to DOMDocument
$this->_documentReference = $dom;
// @codeCoverageIgnoreStart
if (!isset($this->document)) {
$this->document = $dom;
}
// @codeCoverageIgnoreEnd
}