public function next()
    {
        if (isset($this->current->next)) {
            $this->current = $this->current->next;
        } else {
            $this->current->next = new ClassNode(null, $this->current);
            $this->current = $this->current->next;
        }
    }
public function next()
    {
        if (isset($this->current->next)) {
            $this->current = $this->current->next;
        } else {
            $this->current->next = new ClassNode(null, $this->current);
            $this->current = $this->current->next;
        }
    }
public function next ( ) { if ( isset ( $ this -> current -> next ) ) { $ this -> current = $ this -> current -> next ; } else { $ this -> current -> next = new ClassNode ( null , $ this -> current ) ; $ this -> current = $ this -> current -> next ; } }
Traverse to the next node in the list.

@return void
Traverse to the next node in the list .