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

doesNeedDataForNextRowToBeProcessed() protected method

We don't need to read data if: we have already read at least one row AND we need to preserve empty rows AND the last row that was read is not the row that need to be processed (i.e. if we need to return empty rows)
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->shouldPreserveEmptyRows || $this->lastRowIndexProcessed < $this->nextRowIndexToBeProcessed;
    }