Core/src/Iterator/ItemIteratorTrait.php
public function next()
    {
        $this->pageIndex++;
        $this->position++;

        if (count($this->pageIterator->current()) <= $this->pageIndex && $this->nextResultToken()) {
            $this->pageIterator->next();
            $this->pageIndex = 0;
        }
    }
public function next()
    {
        $this->pageIndex++;
        $this->position++;

        if (count($this->pageIterator->current()) <= $this->pageIndex && $this->nextResultToken()) {
            $this->pageIterator->next();
            $this->pageIndex = 0;
        }
    }
public function next ( ) { $ this -> pageIndex ++ ; $ this -> position ++ ; if ( count ( $ this -> pageIterator -> current ( ) ) <= $ this -> pageIndex && $ this -> nextResultToken ( ) ) { $ this -> pageIterator -> next ( ) ; $ this -> pageIndex = 0 ; } }
Advances to the next item.

@return null
Advances to the next item .