@@ -185,6 +185,7 @@ private function getDomFromPath(string $path): \DOMDocument
185185 * Excel can either use a base date from year 1900 (Microsoft Windows) or from year 1904 (old Apple MacOS).
186186 * https://support.microsoft.com/en-us/office/date-systems-in-excel-e7fe7167-48a9-4b96-bb53-5612a800b487
187187 * @phpstan-return 1900|1904
188+ * @return int 1900 or 1904
188189 * @throws XlsxFastEditorFileFormatException
189190 * @throws XlsxFastEditorXmlException
190191 */
@@ -409,7 +410,7 @@ public function getRow(int $sheetNumber, int $rowNumber, int $accessMode = XlsxF
409410 /**
410411 * Get the first existing row of the worksheet.
411412 * @param int $sheetNumber Worksheet number (base 1)
412- * @return XlsxFastEditorRow|null The first row of the worksheet if there is any row, null otherwise.
413+ * @return XlsxFastEditorRow|null The first row of the worksheet if there is any row, ` null` otherwise.
413414 * @throws XlsxFastEditorFileFormatException
414415 * @throws XlsxFastEditorXmlException
415416 */
@@ -430,7 +431,7 @@ public function getFirstRow(int $sheetNumber): ?XlsxFastEditorRow
430431 /**
431432 * Get the last existing row of the worksheet.
432433 * @param int $sheetNumber Worksheet number (base 1)
433- * @return XlsxFastEditorRow|null The last row of the worksheet if there is any row, null otherwise.
434+ * @return XlsxFastEditorRow|null The last row of the worksheet if there is any row, ` null` otherwise.
434435 * @throws XlsxFastEditorFileFormatException
435436 * @throws XlsxFastEditorXmlException
436437 */
@@ -451,6 +452,7 @@ public function getLastRow(int $sheetNumber): ?XlsxFastEditorRow
451452 /**
452453 * Delete the specified row of the specified worksheet.
453454 * @param int $sheetNumber Worksheet number (base 1)
455+ * @return bool True if the deletion succeeds, false otherwise.
454456 * @throws XlsxFastEditorFileFormatException
455457 * @throws XlsxFastEditorXmlException
456458 */
@@ -671,6 +673,7 @@ public function getCellAutocreate(int $sheetNumber, string $cellName): XlsxFastE
671673 *
672674 * @param int $sheetNumber Worksheet number (base 1)
673675 * @param string $cellName Cell name such as `B4`
676+ * @return string|null an integer if the cell exists and contains a formula, `null` otherwise.
674677 * @throws \InvalidArgumentException if `$cellName` has an invalid format
675678 * @throws XlsxFastEditorFileFormatException
676679 * @throws XlsxFastEditorXmlException
@@ -686,6 +689,7 @@ public function readFormula(int $sheetNumber, string $cellName): ?string
686689 *
687690 * @param int $sheetNumber Worksheet number (base 1)
688691 * @param string $cellName Cell name such as `B4`
692+ * @return float|null a float if the cell exists and contains a number, `null` otherwise.
689693 * @throws \InvalidArgumentException if `$cellName` has an invalid format
690694 * @throws XlsxFastEditorFileFormatException
691695 * @throws XlsxFastEditorXmlException
@@ -701,6 +705,7 @@ public function readFloat(int $sheetNumber, string $cellName): ?float
701705 *
702706 * @param int $sheetNumber Worksheet number (base 1)
703707 * @param string $cellName Cell name such as `B4`
708+ * @return \DateTimeImmutable|null a date if the cell exists and contains a number, `null` otherwise.
704709 * @throws \InvalidArgumentException if `$cellName` has an invalid format
705710 * @throws XlsxFastEditorFileFormatException
706711 * @throws XlsxFastEditorXmlException
@@ -716,6 +721,7 @@ public function readDateTime(int $sheetNumber, string $cellName): ?\DateTimeImmu
716721 *
717722 * @param int $sheetNumber Worksheet number (base 1)
718723 * @param string $cellName Cell name such as `B4`
724+ * @return int|null an integer if the cell exists and contains a number, `null` otherwise.
719725 * @throws \InvalidArgumentException if `$cellName` has an invalid format
720726 * @throws XlsxFastEditorFileFormatException
721727 * @throws XlsxFastEditorXmlException
@@ -755,6 +761,7 @@ public function _getSharedString(int $stringNumber): ?string
755761 *
756762 * @param int $sheetNumber Worksheet number (base 1)
757763 * @param string $cellName Cell name such as `B4`
764+ * @return string|null a string if the cell exists and contains a value, `null` otherwise.
758765 * @throws \InvalidArgumentException if `$cellName` has an invalid format
759766 * @throws XlsxFastEditorFileFormatException
760767 * @throws XlsxFastEditorXmlException
@@ -797,6 +804,7 @@ public function _getHyperlink(int $sheetNumber, string $rId): ?string
797804 *
798805 * @param int $sheetNumber Worksheet number (base 1)
799806 * @param string $cellName Cell name such as `B4`
807+ * @return string|null a string if the cell exists and contains a hyperlink, `null` otherwise.
800808 * @throws \InvalidArgumentException if `$cellName` has an invalid format
801809 * @throws XlsxFastEditorFileFormatException
802810 * @throws XlsxFastEditorXmlException
0 commit comments