code: public function next()
      {
          ++$this->index;
  
          if (!$this->isLastPage && !$this->valid()) {
              $this->offset += $this->limit;
  
              $this->loadPage($this->criteria, $this->limit, $this->offset);
          }
      }
docs: {@inheritdoc}