@@ -53,7 +53,7 @@ class SpreadsheetIterator implements SpreadsheetIteratorInterface {
protected$columnsCount;
/**
* The relative index of the current row.
* The 'zero based' relative index of the current row.
*
* @var int
*/
...
...
@@ -68,7 +68,7 @@ class SpreadsheetIterator implements SpreadsheetIteratorInterface {
if(!$this->getRowIndexColumn()){
thrownew\RuntimeException("Row index should act as key but no name has been provided. Use SpreadsheetIterator::setRowIndexColumn() to provide a name for this column.");
}
return[$this->currentRow];
return[$this->getAbsoluteRowIndex()];
}
returnarray_values(array_map(
...
...
@@ -114,7 +114,7 @@ class SpreadsheetIterator implements SpreadsheetIteratorInterface {
thrownew\InvalidArgumentException("The header column '$column' cannot be used as 'row_index_column'. Chose a value for 'row_index_column' that doesn't exist in header cells.");
}
}
return$column;
}
/**
...
...
@@ -224,11 +231,13 @@ class SpreadsheetIterator implements SpreadsheetIteratorInterface {