public function getDocument()
    {
        if ($this->node->ownerDocument === null) {
            return null;
        }

        return new Document($this->node->ownerDocument);
    }
public function getDocument()
    {
        if ($this->node->ownerDocument === null) {
            return null;
        }

        return new Document($this->node->ownerDocument);
    }
public function getDocument ( ) { if ( $ this -> node -> ownerDocument === null ) { return null ; } return new Document ( $ this -> node -> ownerDocument ) ; }
Returns the document associated with this node.

@return \DiDom\Document|null
Returns the document associated with this node .