src/Iterator/GridFSDocumentIterator.php
public function next()
    {
        $this->position++;
        $this->generator->next();
        $this->currentData = $this->generator->current();
    }
public function next()
    {
        $this->position++;
        $this->generator->next();
        $this->currentData = $this->generator->current();
    }
public function next ( ) { $ this -> position ++ ; $ this -> generator -> next ( ) ; $ this -> currentData = $ this -> generator -> current ( ) ; }
Moves forward to next element.

@return void
Moves forward to next element .