Parser/Node.php
public function next()
    {

        $index = $this->parent->indexOf($this) + 1;

        return isset($this->parent->children[$index]) ? $this->parent->children[$index] : null;
    }
public function next()
    {

        $index = $this->parent->indexOf($this) + 1;

        return isset($this->parent->children[$index]) ? $this->parent->children[$index] : null;
    }
public function next ( ) { $ index = $ this -> parent -> indexOf ( $ this ) + 1 ; return isset ( $ this -> parent -> children [ $ index ] ) ? $ this -> parent -> children [ $ index ] : null ; }
Returns the next sibling of this element or null, if if there isn't any.

[element:a]
(0)[element:b]
(1)[element:c]

[element:b]->next() === [element:c]

@return Node|null
Returns the next sibling of this element or null if if there isn t any .