Box\Spout\Reader\ODS\RowIterator::doesNeedDataForNextRowToBeProcessed PHP Method

doesNeedDataForNextRowToBeProcessed() protected method

We DO need to read data if: - we have not read any rows yet OR - the next row to be processed immediately follows the last read row
protected doesNeedDataForNextRowToBeProcessed ( ) : boolean
return boolean Whether we need data for the next row to be processed.
    protected function doesNeedDataForNextRowToBeProcessed()
    {
        $hasReadAtLeastOneRow = $this->lastRowIndexProcessed !== 0;
        return !$hasReadAtLeastOneRow || $this->lastRowIndexProcessed === $this->nextRowIndexToBeProcessed - 1;
    }