public function nextSibling()
    {
        $node = $this->node->nextSibling;

        if ($node === null) {
            return null;
        }

        return new Element($node);
    }
public function nextSibling()
    {
        $node = $this->node->nextSibling;

        if ($node === null) {
            return null;
        }

        return new Element($node);
    }
public function nextSibling ( ) { $ node = $ this -> node -> nextSibling ; if ( $ node === null ) { return null ; } return new Element ( $ node ) ; }
Returns the next sibling of node

@return Element|null
Returns the next sibling of node