@@ -185,6 +185,7 @@ private function getDomFromPath(string $path): \DOMDocument
185
185
* Excel can either use a base date from year 1900 (Microsoft Windows) or from year 1904 (old Apple MacOS).
186
186
* https://support.microsoft.com/en-us/office/date-systems-in-excel-e7fe7167-48a9-4b96-bb53-5612a800b487
187
187
* @phpstan-return 1900|1904
188
+ * @return int 1900 or 1904
188
189
* @throws XlsxFastEditorFileFormatException
189
190
* @throws XlsxFastEditorXmlException
190
191
*/
@@ -409,7 +410,7 @@ public function getRow(int $sheetNumber, int $rowNumber, int $accessMode = XlsxF
409
410
/**
410
411
* Get the first existing row of the worksheet.
411
412
* @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.
413
414
* @throws XlsxFastEditorFileFormatException
414
415
* @throws XlsxFastEditorXmlException
415
416
*/
@@ -430,7 +431,7 @@ public function getFirstRow(int $sheetNumber): ?XlsxFastEditorRow
430
431
/**
431
432
* Get the last existing row of the worksheet.
432
433
* @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.
434
435
* @throws XlsxFastEditorFileFormatException
435
436
* @throws XlsxFastEditorXmlException
436
437
*/
@@ -451,6 +452,7 @@ public function getLastRow(int $sheetNumber): ?XlsxFastEditorRow
451
452
/**
452
453
* Delete the specified row of the specified worksheet.
453
454
* @param int $sheetNumber Worksheet number (base 1)
455
+ * @return bool True if the deletion succeeds, false otherwise.
454
456
* @throws XlsxFastEditorFileFormatException
455
457
* @throws XlsxFastEditorXmlException
456
458
*/
@@ -671,6 +673,7 @@ public function getCellAutocreate(int $sheetNumber, string $cellName): XlsxFastE
671
673
*
672
674
* @param int $sheetNumber Worksheet number (base 1)
673
675
* @param string $cellName Cell name such as `B4`
676
+ * @return string|null an integer if the cell exists and contains a formula, `null` otherwise.
674
677
* @throws \InvalidArgumentException if `$cellName` has an invalid format
675
678
* @throws XlsxFastEditorFileFormatException
676
679
* @throws XlsxFastEditorXmlException
@@ -686,6 +689,7 @@ public function readFormula(int $sheetNumber, string $cellName): ?string
686
689
*
687
690
* @param int $sheetNumber Worksheet number (base 1)
688
691
* @param string $cellName Cell name such as `B4`
692
+ * @return float|null a float if the cell exists and contains a number, `null` otherwise.
689
693
* @throws \InvalidArgumentException if `$cellName` has an invalid format
690
694
* @throws XlsxFastEditorFileFormatException
691
695
* @throws XlsxFastEditorXmlException
@@ -701,6 +705,7 @@ public function readFloat(int $sheetNumber, string $cellName): ?float
701
705
*
702
706
* @param int $sheetNumber Worksheet number (base 1)
703
707
* @param string $cellName Cell name such as `B4`
708
+ * @return \DateTimeImmutable|null a date if the cell exists and contains a number, `null` otherwise.
704
709
* @throws \InvalidArgumentException if `$cellName` has an invalid format
705
710
* @throws XlsxFastEditorFileFormatException
706
711
* @throws XlsxFastEditorXmlException
@@ -716,6 +721,7 @@ public function readDateTime(int $sheetNumber, string $cellName): ?\DateTimeImmu
716
721
*
717
722
* @param int $sheetNumber Worksheet number (base 1)
718
723
* @param string $cellName Cell name such as `B4`
724
+ * @return int|null an integer if the cell exists and contains a number, `null` otherwise.
719
725
* @throws \InvalidArgumentException if `$cellName` has an invalid format
720
726
* @throws XlsxFastEditorFileFormatException
721
727
* @throws XlsxFastEditorXmlException
@@ -755,6 +761,7 @@ public function _getSharedString(int $stringNumber): ?string
755
761
*
756
762
* @param int $sheetNumber Worksheet number (base 1)
757
763
* @param string $cellName Cell name such as `B4`
764
+ * @return string|null a string if the cell exists and contains a value, `null` otherwise.
758
765
* @throws \InvalidArgumentException if `$cellName` has an invalid format
759
766
* @throws XlsxFastEditorFileFormatException
760
767
* @throws XlsxFastEditorXmlException
@@ -797,6 +804,7 @@ public function _getHyperlink(int $sheetNumber, string $rId): ?string
797
804
*
798
805
* @param int $sheetNumber Worksheet number (base 1)
799
806
* @param string $cellName Cell name such as `B4`
807
+ * @return string|null a string if the cell exists and contains a hyperlink, `null` otherwise.
800
808
* @throws \InvalidArgumentException if `$cellName` has an invalid format
801
809
* @throws XlsxFastEditorFileFormatException
802
810
* @throws XlsxFastEditorXmlException
0 commit comments