public function next()
    {
        ++$this->index;

        if (!$this->isLastPage && !$this->valid()) {
            $this->offset += $this->limit;

            $this->loadPage($this->criteria, $this->limit, $this->offset);
        }
    }
public function next()
    {
        ++$this->index;

        if (!$this->isLastPage && !$this->valid()) {
            $this->offset += $this->limit;

            $this->loadPage($this->criteria, $this->limit, $this->offset);
        }
    }
{@inheritdoc}