code: public function resetEnd($endRow = null)
      {
          $this->endRow = ($endRow) ? $endRow : $this->worksheet->getHighestRow();
          $this->adjustForExistingOnlyRange();
  
          return $this;
      }
docs: (Re)Set the end row.
  
  @param int $endRow The row number at which to stop iterating
  
  @throws PhpSpreadsheetException
  
  @return ColumnCellIterator