Predis\Collection\Iterator\CursorBasedIterator::next PHP Method

next() public method

public next ( )
    public function next()
    {
        tryFetch:
        if (!$this->elements && $this->fetchmore) {
            $this->fetch();
        }
        if ($this->elements) {
            $this->extractNext();
        } elseif ($this->cursor) {
            goto tryFetch;
        } else {
            $this->valid = false;
        }
    }