@@ -60,6 +60,10 @@ discard block |
||
60 | 60 | return $testDate->format('d') == 1; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param integer $frequency |
|
65 | + * @param boolean $next |
|
66 | + */ |
|
63 | 67 | private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next) |
64 | 68 | { |
65 | 69 | $months = 12 / $frequency; |
@@ -81,6 +85,9 @@ discard block |
||
81 | 85 | return \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($result); |
82 | 86 | } |
83 | 87 | |
88 | + /** |
|
89 | + * @param integer $frequency |
|
90 | + */ |
|
84 | 91 | private static function isValidFrequency($frequency) |
85 | 92 | { |
86 | 93 | if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { |
@@ -159,7 +166,7 @@ discard block |
||
159 | 166 | * The security settlement date is the date after the issue date |
160 | 167 | * when the security is traded to the buyer. |
161 | 168 | * @param float $rate the security's annual coupon rate |
162 | - * @param float $par The security's par value. |
|
169 | + * @param integer $par The security's par value. |
|
163 | 170 | * If you omit par, ACCRINT uses $1,000. |
164 | 171 | * @param int $frequency the number of coupon payments per year. |
165 | 172 | * Valid frequency values are: |
@@ -232,8 +239,8 @@ discard block |
||
232 | 239 | * @param mixed $issue |
233 | 240 | * @param mixed $settlement |
234 | 241 | * @param mixed $rate |
235 | - * @param mixed $par |
|
236 | - * @param mixed $basis |
|
242 | + * @param integer $par |
|
243 | + * @param integer $basis |
|
237 | 244 | * |
238 | 245 | * @return float |
239 | 246 | */ |
@@ -299,7 +306,7 @@ discard block |
||
299 | 306 | * @param mixed $salvage |
300 | 307 | * @param mixed $period |
301 | 308 | * @param mixed $rate |
302 | - * @param mixed $basis |
|
309 | + * @param integer $basis |
|
303 | 310 | * |
304 | 311 | * @return float |
305 | 312 | */ |
@@ -384,7 +391,7 @@ discard block |
||
384 | 391 | * @param mixed $salvage |
385 | 392 | * @param mixed $period |
386 | 393 | * @param mixed $rate |
387 | - * @param mixed $basis |
|
394 | + * @param integer $basis |
|
388 | 395 | * |
389 | 396 | * @return float |
390 | 397 | */ |
@@ -454,8 +461,8 @@ discard block |
||
454 | 461 | * 4 European 30/360 |
455 | 462 | * @param mixed $settlement |
456 | 463 | * @param mixed $maturity |
457 | - * @param mixed $frequency |
|
458 | - * @param mixed $basis |
|
464 | + * @param integer $frequency |
|
465 | + * @param integer $basis |
|
459 | 466 | * |
460 | 467 | * @return float |
461 | 468 | */ |
@@ -518,7 +525,7 @@ discard block |
||
518 | 525 | * @param int $frequency |
519 | 526 | * @param mixed $settlement |
520 | 527 | * @param mixed $maturity |
521 | - * @param mixed $basis |
|
528 | + * @param integer $basis |
|
522 | 529 | * |
523 | 530 | * @return float |
524 | 531 | */ |
@@ -597,8 +604,8 @@ discard block |
||
597 | 604 | * 4 European 30/360 |
598 | 605 | * @param mixed $settlement |
599 | 606 | * @param mixed $maturity |
600 | - * @param mixed $frequency |
|
601 | - * @param mixed $basis |
|
607 | + * @param integer $frequency |
|
608 | + * @param integer $basis |
|
602 | 609 | * |
603 | 610 | * @return float |
604 | 611 | */ |
@@ -661,7 +668,7 @@ discard block |
||
661 | 668 | * @param mixed $settlement |
662 | 669 | * @param mixed $maturity |
663 | 670 | * @param mixed $frequency |
664 | - * @param mixed $basis |
|
671 | + * @param integer $basis |
|
665 | 672 | * |
666 | 673 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
667 | 674 | * depending on the value of the ReturnDateType flag |
@@ -722,8 +729,8 @@ discard block |
||
722 | 729 | * 4 European 30/360 |
723 | 730 | * @param mixed $settlement |
724 | 731 | * @param mixed $maturity |
725 | - * @param mixed $frequency |
|
726 | - * @param mixed $basis |
|
732 | + * @param integer $frequency |
|
733 | + * @param integer $basis |
|
727 | 734 | * |
728 | 735 | * @return int |
729 | 736 | */ |
@@ -799,7 +806,7 @@ discard block |
||
799 | 806 | * @param mixed $settlement |
800 | 807 | * @param mixed $maturity |
801 | 808 | * @param mixed $frequency |
802 | - * @param mixed $basis |
|
809 | + * @param integer $basis |
|
803 | 810 | * |
804 | 811 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
805 | 812 | * depending on the value of the ReturnDateType flag |
@@ -951,7 +958,7 @@ discard block |
||
951 | 958 | * @param mixed $salvage |
952 | 959 | * @param mixed $life |
953 | 960 | * @param mixed $period |
954 | - * @param mixed $month |
|
961 | + * @param integer $month |
|
955 | 962 | * |
956 | 963 | * @return float |
957 | 964 | */ |
@@ -1026,7 +1033,7 @@ discard block |
||
1026 | 1033 | * @param mixed $salvage |
1027 | 1034 | * @param mixed $life |
1028 | 1035 | * @param mixed $period |
1029 | - * @param mixed $factor |
|
1036 | + * @param double $factor |
|
1030 | 1037 | * |
1031 | 1038 | * @return float |
1032 | 1039 | */ |
@@ -1095,7 +1102,7 @@ discard block |
||
1095 | 1102 | * @param mixed $maturity |
1096 | 1103 | * @param mixed $price |
1097 | 1104 | * @param mixed $redemption |
1098 | - * @param mixed $basis |
|
1105 | + * @param integer $basis |
|
1099 | 1106 | * |
1100 | 1107 | * @return float |
1101 | 1108 | */ |
@@ -1214,7 +1221,7 @@ discard block |
||
1214 | 1221 | * |
1215 | 1222 | * @category Financial Functions |
1216 | 1223 | * |
1217 | - * @param float $nominal_rate Nominal interest rate |
|
1224 | + * @param integer $nominal_rate Nominal interest rate |
|
1218 | 1225 | * @param int $npery Number of compounding payments per year |
1219 | 1226 | * |
1220 | 1227 | * @return float |
@@ -1242,12 +1249,12 @@ discard block |
||
1242 | 1249 | * |
1243 | 1250 | * @category Financial Functions |
1244 | 1251 | * |
1245 | - * @param float $rate The interest rate per period |
|
1252 | + * @param integer $rate The interest rate per period |
|
1246 | 1253 | * @param int $nper Total number of payment periods in an annuity |
1247 | - * @param float $pmt The payment made each period: it cannot change over the |
|
1254 | + * @param integer $pmt The payment made each period: it cannot change over the |
|
1248 | 1255 | * life of the annuity. Typically, pmt contains principal |
1249 | 1256 | * and interest but no other fees or taxes. |
1250 | - * @param float $pv present Value, or the lump-sum amount that a series of |
|
1257 | + * @param integer $pv present Value, or the lump-sum amount that a series of |
|
1251 | 1258 | * future payments is worth right now |
1252 | 1259 | * @param int $type A number 0 or 1 and indicates when payments are due: |
1253 | 1260 | * 0 or omitted At the end of the period. |
@@ -1365,7 +1372,7 @@ discard block |
||
1365 | 1372 | * @param int $per Period for which we want to find the interest |
1366 | 1373 | * @param int $nper Number of periods |
1367 | 1374 | * @param float $pv Present Value |
1368 | - * @param float $fv Future Value |
|
1375 | + * @param integer $fv Future Value |
|
1369 | 1376 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1370 | 1377 | * |
1371 | 1378 | * @return float |
@@ -1560,7 +1567,7 @@ discard block |
||
1560 | 1567 | * |
1561 | 1568 | * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. |
1562 | 1569 | * |
1563 | - * @param float $effect_rate Effective interest rate |
|
1570 | + * @param integer $effect_rate Effective interest rate |
|
1564 | 1571 | * @param int $npery Number of compounding payments per year |
1565 | 1572 | * |
1566 | 1573 | * @return float |
@@ -1584,10 +1591,10 @@ discard block |
||
1584 | 1591 | * |
1585 | 1592 | * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. |
1586 | 1593 | * |
1587 | - * @param float $rate Interest rate per period |
|
1594 | + * @param integer $rate Interest rate per period |
|
1588 | 1595 | * @param int $pmt Periodic payment (annuity) |
1589 | - * @param float $pv Present Value |
|
1590 | - * @param float $fv Future Value |
|
1596 | + * @param integer $pv Present Value |
|
1597 | + * @param integer $fv Future Value |
|
1591 | 1598 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1592 | 1599 | * |
1593 | 1600 | * @return float |
@@ -1653,10 +1660,10 @@ discard block |
||
1653 | 1660 | * |
1654 | 1661 | * Returns the constant payment (annuity) for a cash flow with a constant interest rate. |
1655 | 1662 | * |
1656 | - * @param float $rate Interest rate per period |
|
1663 | + * @param integer $rate Interest rate per period |
|
1657 | 1664 | * @param int $nper Number of periods |
1658 | - * @param float $pv Present Value |
|
1659 | - * @param float $fv Future Value |
|
1665 | + * @param integer $pv Present Value |
|
1666 | + * @param integer $fv Future Value |
|
1660 | 1667 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1661 | 1668 | * |
1662 | 1669 | * @return float |
@@ -1691,7 +1698,7 @@ discard block |
||
1691 | 1698 | * @param int $per Period for which we want to find the interest |
1692 | 1699 | * @param int $nper Number of periods |
1693 | 1700 | * @param float $pv Present Value |
1694 | - * @param float $fv Future Value |
|
1701 | + * @param integer $fv Future Value |
|
1695 | 1702 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1696 | 1703 | * |
1697 | 1704 | * @return float |
@@ -1781,7 +1788,7 @@ discard block |
||
1781 | 1788 | * @param mixed $maturity |
1782 | 1789 | * @param mixed $discount |
1783 | 1790 | * @param mixed $redemption |
1784 | - * @param mixed $basis |
|
1791 | + * @param integer $basis |
|
1785 | 1792 | * |
1786 | 1793 | * @return float |
1787 | 1794 | */ |
@@ -1833,7 +1840,7 @@ discard block |
||
1833 | 1840 | * @param mixed $issue |
1834 | 1841 | * @param mixed $rate |
1835 | 1842 | * @param mixed $yield |
1836 | - * @param mixed $basis |
|
1843 | + * @param integer $basis |
|
1837 | 1844 | * |
1838 | 1845 | * @return float |
1839 | 1846 | */ |
@@ -1887,10 +1894,10 @@ discard block |
||
1887 | 1894 | * |
1888 | 1895 | * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). |
1889 | 1896 | * |
1890 | - * @param float $rate Interest rate per period |
|
1897 | + * @param integer $rate Interest rate per period |
|
1891 | 1898 | * @param int $nper Number of periods |
1892 | - * @param float $pmt Periodic payment (annuity) |
|
1893 | - * @param float $fv Future Value |
|
1899 | + * @param integer $pmt Periodic payment (annuity) |
|
1900 | + * @param integer $fv Future Value |
|
1894 | 1901 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1895 | 1902 | * |
1896 | 1903 | * @return float |
@@ -1947,9 +1954,9 @@ discard block |
||
1947 | 1954 | * @param mixed $nper |
1948 | 1955 | * @param mixed $pmt |
1949 | 1956 | * @param mixed $pv |
1950 | - * @param mixed $fv |
|
1951 | - * @param mixed $type |
|
1952 | - * @param mixed $guess |
|
1957 | + * @param double $fv |
|
1958 | + * @param integer $type |
|
1959 | + * @param double $guess |
|
1953 | 1960 | * |
1954 | 1961 | * @return float |
1955 | 1962 | **/ |
@@ -2018,7 +2025,7 @@ discard block |
||
2018 | 2025 | * @param mixed $maturity |
2019 | 2026 | * @param mixed $investment |
2020 | 2027 | * @param mixed $discount |
2021 | - * @param mixed $basis |
|
2028 | + * @param integer $basis |
|
2022 | 2029 | * |
2023 | 2030 | * @return float |
2024 | 2031 | */ |
@@ -2388,7 +2395,7 @@ discard block |
||
2388 | 2395 | * @param mixed $maturity |
2389 | 2396 | * @param mixed $price |
2390 | 2397 | * @param mixed $redemption |
2391 | - * @param mixed $basis |
|
2398 | + * @param integer $basis |
|
2392 | 2399 | * |
2393 | 2400 | * @return float |
2394 | 2401 | */ |
@@ -2445,7 +2452,7 @@ discard block |
||
2445 | 2452 | * @param mixed $issue |
2446 | 2453 | * @param mixed $rate |
2447 | 2454 | * @param mixed $price |
2448 | - * @param mixed $basis |
|
2455 | + * @param integer $basis |
|
2449 | 2456 | * |
2450 | 2457 | * @return float |
2451 | 2458 | */ |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * This function converts a number to text using currency format, with the decimals rounded to the specified place. |
170 | 170 | * The format used is $#,##0.00_);($#,##0.00).. |
171 | 171 | * |
172 | - * @param float $value The value to format |
|
172 | + * @param integer $value The value to format |
|
173 | 173 | * @param int $decimals The number of digits to display to the right of the decimal point. |
174 | 174 | * If decimals is negative, number is rounded to the left of the decimal point. |
175 | 175 | * If you omit decimals, it is assumed to be 2 |
@@ -236,7 +236,7 @@ |
||
236 | 236 | * Calculate an (approximate) OpenXML column width, based on font size and text contained. |
237 | 237 | * |
238 | 238 | * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object |
239 | - * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width |
|
239 | + * @param string $cellText Text to calculate width |
|
240 | 240 | * @param int $rotation Rotation angle |
241 | 241 | * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object |
242 | 242 | * |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | /** |
820 | 820 | * Return the eigenvector matrix. |
821 | 821 | * |
822 | - * @return V |
|
822 | + * @return Matrix |
|
823 | 823 | */ |
824 | 824 | public function getV() |
825 | 825 | { |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | /** |
850 | 850 | * Return the block diagonal eigenvalue matrix. |
851 | 851 | * |
852 | - * @return D |
|
852 | + * @return Matrix |
|
853 | 853 | */ |
854 | 854 | public function getD() |
855 | 855 | { |
@@ -241,7 +241,7 @@ |
||
241 | 241 | /** |
242 | 242 | * Solve A*X = B. |
243 | 243 | * |
244 | - * @param $B a Matrix with as many rows as A and any number of columns |
|
244 | + * @param Matrix $B a Matrix with as many rows as A and any number of columns |
|
245 | 245 | * |
246 | 246 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception illegalArgumentException Matrix row dimensions must agree |
247 | 247 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception runtimeException Matrix is singular |
@@ -149,10 +149,6 @@ discard block |
||
149 | 149 | * |
150 | 150 | * Get a submatrix |
151 | 151 | * |
152 | - * @param int $i0 Initial row index |
|
153 | - * @param int $iF Final row index |
|
154 | - * @param int $j0 Initial column index |
|
155 | - * @param int $jF Final column index |
|
156 | 152 | * |
157 | 153 | * @return Matrix Submatrix |
158 | 154 | */ |
@@ -345,7 +341,7 @@ discard block |
||
345 | 341 | * |
346 | 342 | * @param int $m Row dimension |
347 | 343 | * @param int $n Column dimension |
348 | - * @param mixed $c Diagonal value |
|
344 | + * @param integer $c Diagonal value |
|
349 | 345 | * |
350 | 346 | * @return Matrix Diagonal matrix |
351 | 347 | */ |
@@ -429,7 +425,7 @@ discard block |
||
429 | 425 | * |
430 | 426 | * Sum of diagonal elements |
431 | 427 | * |
432 | - * @return float Sum of diagonal elements |
|
428 | + * @return integer Sum of diagonal elements |
|
433 | 429 | */ |
434 | 430 | public function trace() |
435 | 431 | { |
@@ -458,7 +454,6 @@ discard block |
||
458 | 454 | * |
459 | 455 | * A + B |
460 | 456 | * |
461 | - * @param mixed $B Matrix/Array |
|
462 | 457 | * |
463 | 458 | * @return Matrix Sum |
464 | 459 | */ |
@@ -500,7 +495,6 @@ discard block |
||
500 | 495 | * |
501 | 496 | * A = A + B |
502 | 497 | * |
503 | - * @param mixed $B Matrix/Array |
|
504 | 498 | * |
505 | 499 | * @return Matrix Sum |
506 | 500 | */ |
@@ -556,7 +550,6 @@ discard block |
||
556 | 550 | * |
557 | 551 | * A - B |
558 | 552 | * |
559 | - * @param mixed $B Matrix/Array |
|
560 | 553 | * |
561 | 554 | * @return Matrix Sum |
562 | 555 | */ |
@@ -598,7 +591,6 @@ discard block |
||
598 | 591 | * |
599 | 592 | * A = A - B |
600 | 593 | * |
601 | - * @param mixed $B Matrix/Array |
|
602 | 594 | * |
603 | 595 | * @return Matrix Sum |
604 | 596 | */ |
@@ -655,7 +647,6 @@ discard block |
||
655 | 647 | * Element-by-element multiplication |
656 | 648 | * Cij = Aij * Bij |
657 | 649 | * |
658 | - * @param mixed $B Matrix/Array |
|
659 | 650 | * |
660 | 651 | * @return Matrix Matrix Cij |
661 | 652 | */ |
@@ -698,7 +689,6 @@ discard block |
||
698 | 689 | * Element-by-element multiplication |
699 | 690 | * Aij = Aij * Bij |
700 | 691 | * |
701 | - * @param mixed $B Matrix/Array |
|
702 | 692 | * |
703 | 693 | * @return Matrix Matrix Aij |
704 | 694 | */ |
@@ -755,7 +745,6 @@ discard block |
||
755 | 745 | * Element-by-element right division |
756 | 746 | * A / B |
757 | 747 | * |
758 | - * @param Matrix $B Matrix B |
|
759 | 748 | * |
760 | 749 | * @return Matrix Division result |
761 | 750 | */ |
@@ -817,7 +806,6 @@ discard block |
||
817 | 806 | * Element-by-element right division |
818 | 807 | * Aij = Aij / Bij |
819 | 808 | * |
820 | - * @param mixed $B Matrix/Array |
|
821 | 809 | * |
822 | 810 | * @return Matrix Matrix Aij |
823 | 811 | */ |
@@ -860,7 +848,6 @@ discard block |
||
860 | 848 | * Element-by-element Left division |
861 | 849 | * A / B |
862 | 850 | * |
863 | - * @param Matrix $B Matrix B |
|
864 | 851 | * |
865 | 852 | * @return Matrix Division result |
866 | 853 | */ |
@@ -903,7 +890,6 @@ discard block |
||
903 | 890 | * Element-by-element Left division |
904 | 891 | * Aij = Aij / Bij |
905 | 892 | * |
906 | - * @param mixed $B Matrix/Array |
|
907 | 893 | * |
908 | 894 | * @return Matrix Matrix Aij |
909 | 895 | */ |
@@ -945,7 +931,6 @@ discard block |
||
945 | 931 | * |
946 | 932 | * Matrix multiplication |
947 | 933 | * |
948 | - * @param mixed $n Matrix/Array/Scalar |
|
949 | 934 | * |
950 | 935 | * @return Matrix Product |
951 | 936 | */ |
@@ -1038,7 +1023,6 @@ discard block |
||
1038 | 1023 | * |
1039 | 1024 | * A = A ^ B |
1040 | 1025 | * |
1041 | - * @param mixed $B Matrix/Array |
|
1042 | 1026 | * |
1043 | 1027 | * @return Matrix Sum |
1044 | 1028 | */ |
@@ -1094,7 +1078,6 @@ discard block |
||
1094 | 1078 | * |
1095 | 1079 | * A = A & B |
1096 | 1080 | * |
1097 | - * @param mixed $B Matrix/Array |
|
1098 | 1081 | * |
1099 | 1082 | * @return Matrix Sum |
1100 | 1083 | */ |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | /** |
442 | 442 | * Return the left singular vectors. |
443 | 443 | * |
444 | - * @return U |
|
444 | + * @return Matrix |
|
445 | 445 | */ |
446 | 446 | public function getU() |
447 | 447 | { |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | /** |
452 | 452 | * Return the right singular vectors. |
453 | 453 | * |
454 | - * @return V |
|
454 | + * @return Matrix |
|
455 | 455 | */ |
456 | 456 | public function getV() |
457 | 457 | { |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | /** |
472 | 472 | * Return the diagonal matrix of singular values. |
473 | 473 | * |
474 | - * @return S |
|
474 | + * @return Matrix |
|
475 | 475 | */ |
476 | 476 | public function getS() |
477 | 477 | { |
@@ -43,7 +43,6 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Create a new row. |
45 | 45 | * |
46 | - * @param \PhpOffice\PhpSpreadsheet\Worksheet $parent |
|
47 | 46 | * @param int $rowIndex |
48 | 47 | */ |
49 | 48 | public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $worksheet = null, $rowIndex = 1) |
@@ -87,7 +86,7 @@ discard block |
||
87 | 86 | /** |
88 | 87 | * Returns bound worksheet. |
89 | 88 | * |
90 | - * @return Worksheet |
|
89 | + * @return |
|
91 | 90 | */ |
92 | 91 | public function getWorksheet() |
93 | 92 | { |
@@ -240,8 +240,8 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @param \PhpOffice\PhpSpreadsheet\Style |
242 | 242 | * @param bool Is it a style XF? |
243 | - * @param mixed $style |
|
244 | - * @param mixed $isStyleXf |
|
243 | + * @param \PhpOffice\PhpSpreadsheet\Style $style |
|
244 | + * @param boolean $isStyleXf |
|
245 | 245 | * |
246 | 246 | * @return int Index to XF record |
247 | 247 | */ |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | * |
797 | 797 | * @param string $name The name in UTF-8 |
798 | 798 | * @param string $formulaData The binary formula data |
799 | - * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
799 | + * @param integer $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
800 | 800 | * @param bool $isBuiltIn Built-in name? |
801 | 801 | * |
802 | 802 | * @return string Complete binary record data |