Returns the spreadsheet row number for which the extractor should start extracting row data.
@param Worksheet $sheet
@return int
185155
private function getStartingRow($sheet): int
    {
        $row = null;
        for ($i = 1; $i <= 4 && !$row; $i++) {
            if ($sheet->getCellByColumnAndRow(1, $i) == "Cod.") {
                $row = $i + 1;
            }
        }

        return $row;
    }
904504
public function rowCount(): int
    {
        if (!$this->wasExecuted()) {
            $this->exec();
        }

        return $this->getAdapter()->getStatement()->rowCount();
    }
1013372
def get_data(self, sheet, find=False, begin=1):
        
        line = begin
        for row in sheet.rows:
            if self.match(row):
                d = self.extract_data(sheet, line)
                return d
            else:
                if find:
                    line += 1
                else:
                    break
        return
376522
public function rowNumCells($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }

        // Get the data ta position
        $row = $this->rowData($position);
        $numCells = isset($row['columns']) ? count($row['columns']) : null;
        return $numCells;
    }
339058
public function getRowDimension($pRow = 1, $create = TRUE)
    {
        // Found
        $found = null;

        // Get row dimension
        if (!isset($this->_rowDimensions[$pRow])) {
			if (!$create)
				return NULL;
            $this->_rowDimensions[$pRow] = new PHPExcel_Worksheet_RowDimension($pRow);

            $this->_cachedHighestRow = max($this->_cachedHighestRow,$pRow);
        }
        return $this->_rowDimensions[$pRow];
    }
1348853
public function setActiveWorksheet($worksheet)
    {
        if(is_string($worksheet)){
            $worksheet = $this->worksheets[md5($worksheet)];
        }
        $this->active_worksheet = $worksheet;
        return $worksheet;

    }
147913
@Override
    public int numSheets()
    {
        int ret = -1;
        if(workbook != null)
            ret = workbook.getNumberOfSheets();
        else if(writableWorkbook != null)
            ret = writableWorkbook.getNumberOfSheets();
        return ret;
    }
100368
public function getValidationsCount()
    {
        //check whether workshett name is set or not
        if ($this->worksheetName == '')
            throw new Exception('Worksheet name not specified');
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() .
            '/worksheets/' . $this->worksheetName . '/validations';
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        $json = json_decode($responseStream);
        return count($json->Validations->ValidationList);

    }
1082406
public function getSheet($sheetIndex = 0)
    {
        if (!isset($this->sheets[$sheetIndex])) {
            throw new \InvalidArgumentException(sprintf('No sheet with index %d defined', $sheetIndex));
        }

        return $this->sheets[$sheetIndex];
    }
668273
public function getIndex(PHPExcel_Worksheet $pSheet)
    {
        foreach ($this->workSheetCollection as $key => $value) {
            if ($value->getHashCode() == $pSheet->getHashCode()) {
                return $key;
            }
        }

        throw new PHPExcel_Exception("Sheet does not exist.");
    }
289159
public function cellRowIndex($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }
        $first = $this->rowFirstCellIndex($position);

        return ($position - $first);
    }
803642
public function setRowCount(bool $runRowCount): ?int
    {
        if ($runRowCount === true) {
            return $this->sqlQuery->rowCount();
        }

        return null;
    }
271391
public function getAutoShapesCount()
    {
        //check whether workshett name is set or not
        if ($this->worksheetName == '')
            throw new Exception('Worksheet name not specified');
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() .
            '/worksheets/' . $this->worksheetName . '/autoshapes';
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        $json = json_decode($responseStream);
        return count($json->AutoShapes->AutoShapeList);

    }
156366
private function obtainNumRows()
    {
        $count = 0;
        if (false !== $this->internalFetch(SQLITE3_NUM)) {
            $this->getFields();
            $count = 1;
        }
        while (false !== $this->internalFetch(SQLITE3_NUM)) {
            $count = $count + 1;
        }
        $this->internalReset();
        return $count;
    }
896715
public function setHeaderRowNumber($rowNumber)
    {
        $this->headerRowNumber = $rowNumber;
        $this->columnHeaders = $this->worksheet[$rowNumber];
    }
240651
public function getRow() : ?int 
    {
        if ( ! $this->hasRow()) {
            $this->setRow($this->getDefaultRow());
        }
        return $this->row;
    }
274894
public function getTotalSelectedRowsWithoutLimit(): int
    {
        if (!$this->require_to_count_total_rows) {
            dump('You need to call setRequireCountRowsWithoutLimits(true) before requesting result');
        }

        $this->collectObjects();

        return (int)$this->total_count_rows;
    }