/** * Get the startrow * @return integer */ protected function getStartRow() { // Set default start row $startRow = $this->defaultStartRow; // If the reader has a heading, skip the first row if ($this->reader->hasHeading()) { $startRow++; } // Get the amount of rows to skip $skip = $this->reader->getSkip(); // If we want to skip rows, add the amount of rows if ($skip > 0) { $startRow = $startRow + $skip; } // Return the startrow return $startRow; }