@@ -235,7 +235,7 @@ |
||
235 | 235 | * Calculate an (approximate) OpenXML column width, based on font size and text contained |
236 | 236 | * |
237 | 237 | * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object |
238 | - * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width |
|
238 | + * @param string $cellText Text to calculate width |
|
239 | 239 | * @param int $rotation Rotation angle |
240 | 240 | * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object |
241 | 241 | * @return int Column width |
@@ -204,6 +204,9 @@ |
||
204 | 204 | return $chart; |
205 | 205 | } |
206 | 206 | |
207 | + /** |
|
208 | + * @param string $type |
|
209 | + */ |
|
207 | 210 | private static function chartTitle($titleDetails, $namespacesChartMeta, $type) |
208 | 211 | { |
209 | 212 | $caption = []; |
@@ -5157,7 +5157,7 @@ discard block |
||
5157 | 5157 | * is in one piece. |
5158 | 5158 | * Moves to next current position in data stream to start of next record different from a CONtINUE record |
5159 | 5159 | * |
5160 | - * @return array |
|
5160 | + * @return integer|null |
|
5161 | 5161 | */ |
5162 | 5162 | private function getSplicedRecordData() |
5163 | 5163 | { |
@@ -5421,7 +5421,7 @@ discard block |
||
5421 | 5421 | * @param string $formulaData Formula data |
5422 | 5422 | * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas |
5423 | 5423 | * @throws Exception |
5424 | - * @return array |
|
5424 | + * @return string |
|
5425 | 5425 | */ |
5426 | 5426 | private function getNextToken($formulaData, $baseCell = 'A1') |
5427 | 5427 | { |
@@ -6989,7 +6989,7 @@ discard block |
||
6989 | 6989 | * section 2.5.15 |
6990 | 6990 | * |
6991 | 6991 | * @param string $subData |
6992 | - * @return array |
|
6992 | + * @return string |
|
6993 | 6993 | */ |
6994 | 6994 | private function readBIFF8CellRangeAddressList($subData) |
6995 | 6995 | { |
@@ -7100,7 +7100,7 @@ discard block |
||
7100 | 7100 | * section 2.5.8 |
7101 | 7101 | * |
7102 | 7102 | * @param string $arrayData |
7103 | - * @return array |
|
7103 | + * @return string |
|
7104 | 7104 | */ |
7105 | 7105 | private static function readBIFF8ConstantArray($arrayData) |
7106 | 7106 | { |
@@ -7138,7 +7138,7 @@ discard block |
||
7138 | 7138 | * returns e.g. array('value' => '5', 'size' => 9) |
7139 | 7139 | * |
7140 | 7140 | * @param string $valueData |
7141 | - * @return array |
|
7141 | + * @return string |
|
7142 | 7142 | */ |
7143 | 7143 | private static function readBIFF8Constant($valueData) |
7144 | 7144 | { |
@@ -190,6 +190,11 @@ |
||
190 | 190 | return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z) |
191 | 191 | } |
192 | 192 | |
193 | + /** |
|
194 | + * @param string[] $func |
|
195 | + * @param integer $s |
|
196 | + * @param integer $t |
|
197 | + */ |
|
193 | 198 | private static function step($func, &$A, $B, $C, $D, $M, $s, $t) |
194 | 199 | { |
195 | 200 | $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff; |
@@ -199,10 +199,12 @@ discard block |
||
199 | 199 | * @param int &$str_unique Total number of unique strings |
200 | 200 | * @param array &$str_table String Table |
201 | 201 | * @param array &$colors Colour Table |
202 | - * @param mixed $parser The formula parser created for the Workbook |
|
202 | + * @param Parser $parser The formula parser created for the Workbook |
|
203 | 203 | * @param bool $preCalculateFormulas Flag indicating whether formulas should be calculated or just written |
204 | 204 | * @param string $phpSheet The worksheet to write |
205 | 205 | * @param \PhpSpreadsheet\Worksheet $phpSheet |
206 | + * @param integer $str_total |
|
207 | + * @param integer $str_unique |
|
206 | 208 | */ |
207 | 209 | public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet) |
208 | 210 | { |
@@ -611,7 +613,7 @@ discard block |
||
611 | 613 | * @param int $row Zero indexed row |
612 | 614 | * @param int $col Zero indexed column |
613 | 615 | * @param float $num The number to write |
614 | - * @param mixed $xfIndex The optional XF format |
|
616 | + * @param integer $xfIndex The optional XF format |
|
615 | 617 | * @return int |
616 | 618 | */ |
617 | 619 | private function writeNumber($row, $col, $num, $xfIndex) |
@@ -717,7 +719,7 @@ discard block |
||
717 | 719 | * @param int $row Zero indexed row |
718 | 720 | * @param int $col Zero indexed column |
719 | 721 | * @param string $str The string to write |
720 | - * @param mixed $xfIndex The XF format index for the cell |
|
722 | + * @param integer $xfIndex The XF format index for the cell |
|
721 | 723 | * @return int |
722 | 724 | */ |
723 | 725 | private function writeLabelSst($row, $col, $str, $xfIndex) |
@@ -783,7 +785,7 @@ discard block |
||
783 | 785 | * |
784 | 786 | * @param int $row Zero indexed row |
785 | 787 | * @param int $col Zero indexed column |
786 | - * @param mixed $xfIndex The XF format index |
|
788 | + * @param integer $xfIndex The XF format index |
|
787 | 789 | */ |
788 | 790 | public function writeBlank($row, $col, $xfIndex) |
789 | 791 | { |
@@ -830,7 +832,7 @@ discard block |
||
830 | 832 | * @param int $row Zero indexed row |
831 | 833 | * @param int $col Zero indexed column |
832 | 834 | * @param string $formula The formula text string |
833 | - * @param mixed $xfIndex The XF format index |
|
835 | + * @param integer $xfIndex The XF format index |
|
834 | 836 | * @param mixed $calculatedValue Calculated value |
835 | 837 | * @return int |
836 | 838 | */ |
@@ -2299,8 +2301,8 @@ discard block |
||
2299 | 2301 | * @param mixed $bitmap The bitmap filename or GD-image resource |
2300 | 2302 | * @param int $x The horizontal position (offset) of the image inside the cell. |
2301 | 2303 | * @param int $y The vertical position (offset) of the image inside the cell. |
2302 | - * @param float $scale_x The horizontal scale |
|
2303 | - * @param float $scale_y The vertical scale |
|
2304 | + * @param integer $scale_x The horizontal scale |
|
2305 | + * @param integer $scale_y The vertical scale |
|
2304 | 2306 | */ |
2305 | 2307 | public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) |
2306 | 2308 | { |
@@ -149,12 +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 | - * |
|
157 | - * @return Matrix Submatrix |
|
158 | 152 | */ |
159 | 153 | public function getMatrix() |
160 | 154 | { |
@@ -365,7 +359,7 @@ discard block |
||
365 | 359 | * |
366 | 360 | * @param int $m Row dimension |
367 | 361 | * @param int $n Column dimension |
368 | - * @param mixed $c Diagonal value |
|
362 | + * @param integer $c Diagonal value |
|
369 | 363 | * |
370 | 364 | * @return Matrix Diagonal matrix |
371 | 365 | */ |
@@ -449,7 +443,7 @@ discard block |
||
449 | 443 | * |
450 | 444 | * Sum of diagonal elements |
451 | 445 | * |
452 | - * @return float Sum of diagonal elements |
|
446 | + * @return integer Sum of diagonal elements |
|
453 | 447 | */ |
454 | 448 | public function trace() |
455 | 449 | { |
@@ -478,9 +472,6 @@ discard block |
||
478 | 472 | * |
479 | 473 | * A + B |
480 | 474 | * |
481 | - * @param mixed $B Matrix/Array |
|
482 | - * |
|
483 | - * @return Matrix Sum |
|
484 | 475 | */ |
485 | 476 | public function plus() |
486 | 477 | { |
@@ -521,9 +512,6 @@ discard block |
||
521 | 512 | * |
522 | 513 | * A = A + B |
523 | 514 | * |
524 | - * @param mixed $B Matrix/Array |
|
525 | - * |
|
526 | - * @return Matrix Sum |
|
527 | 515 | */ |
528 | 516 | public function plusEquals() |
529 | 517 | { |
@@ -578,9 +566,6 @@ discard block |
||
578 | 566 | * |
579 | 567 | * A - B |
580 | 568 | * |
581 | - * @param mixed $B Matrix/Array |
|
582 | - * |
|
583 | - * @return Matrix Sum |
|
584 | 569 | */ |
585 | 570 | public function minus() |
586 | 571 | { |
@@ -621,9 +606,6 @@ discard block |
||
621 | 606 | * |
622 | 607 | * A = A - B |
623 | 608 | * |
624 | - * @param mixed $B Matrix/Array |
|
625 | - * |
|
626 | - * @return Matrix Sum |
|
627 | 609 | */ |
628 | 610 | public function minusEquals() |
629 | 611 | { |
@@ -679,9 +661,6 @@ discard block |
||
679 | 661 | * Element-by-element multiplication |
680 | 662 | * Cij = Aij * Bij |
681 | 663 | * |
682 | - * @param mixed $B Matrix/Array |
|
683 | - * |
|
684 | - * @return Matrix Matrix Cij |
|
685 | 664 | */ |
686 | 665 | public function arrayTimes() |
687 | 666 | { |
@@ -723,9 +702,6 @@ discard block |
||
723 | 702 | * Element-by-element multiplication |
724 | 703 | * Aij = Aij * Bij |
725 | 704 | * |
726 | - * @param mixed $B Matrix/Array |
|
727 | - * |
|
728 | - * @return Matrix Matrix Aij |
|
729 | 705 | */ |
730 | 706 | public function arrayTimesEquals() |
731 | 707 | { |
@@ -781,9 +757,6 @@ discard block |
||
781 | 757 | * Element-by-element right division |
782 | 758 | * A / B |
783 | 759 | * |
784 | - * @param Matrix $B Matrix B |
|
785 | - * |
|
786 | - * @return Matrix Division result |
|
787 | 760 | */ |
788 | 761 | public function arrayRightDivide() |
789 | 762 | { |
@@ -844,9 +817,6 @@ discard block |
||
844 | 817 | * Element-by-element right division |
845 | 818 | * Aij = Aij / Bij |
846 | 819 | * |
847 | - * @param mixed $B Matrix/Array |
|
848 | - * |
|
849 | - * @return Matrix Matrix Aij |
|
850 | 820 | */ |
851 | 821 | public function arrayRightDivideEquals() |
852 | 822 | { |
@@ -888,9 +858,6 @@ discard block |
||
888 | 858 | * Element-by-element Left division |
889 | 859 | * A / B |
890 | 860 | * |
891 | - * @param Matrix $B Matrix B |
|
892 | - * |
|
893 | - * @return Matrix Division result |
|
894 | 861 | */ |
895 | 862 | public function arrayLeftDivide() |
896 | 863 | { |
@@ -932,9 +899,6 @@ discard block |
||
932 | 899 | * Element-by-element Left division |
933 | 900 | * Aij = Aij / Bij |
934 | 901 | * |
935 | - * @param mixed $B Matrix/Array |
|
936 | - * |
|
937 | - * @return Matrix Matrix Aij |
|
938 | 902 | */ |
939 | 903 | public function arrayLeftDivideEquals() |
940 | 904 | { |
@@ -975,9 +939,6 @@ discard block |
||
975 | 939 | * |
976 | 940 | * Matrix multiplication |
977 | 941 | * |
978 | - * @param mixed $n Matrix/Array/Scalar |
|
979 | - * |
|
980 | - * @return Matrix Product |
|
981 | 942 | */ |
982 | 943 | public function times() |
983 | 944 | { |
@@ -1078,9 +1039,6 @@ discard block |
||
1078 | 1039 | * |
1079 | 1040 | * A = A ^ B |
1080 | 1041 | * |
1081 | - * @param mixed $B Matrix/Array |
|
1082 | - * |
|
1083 | - * @return Matrix Sum |
|
1084 | 1042 | */ |
1085 | 1043 | public function power() |
1086 | 1044 | { |
@@ -1135,9 +1093,6 @@ discard block |
||
1135 | 1093 | * |
1136 | 1094 | * A = A & B |
1137 | 1095 | * |
1138 | - * @param mixed $B Matrix/Array |
|
1139 | - * |
|
1140 | - * @return Matrix Sum |
|
1141 | 1096 | */ |
1142 | 1097 | public function concat() |
1143 | 1098 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Read the file |
71 | 71 | * |
72 | - * @param $pFilename string Filename |
|
72 | + * @param string $pFilename string Filename |
|
73 | 73 | * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception |
74 | 74 | */ |
75 | 75 | public function read($pFilename) |
@@ -2072,7 +2072,6 @@ discard block |
||
2072 | 2072 | /** |
2073 | 2073 | * Unset an instance of this class. |
2074 | 2074 | * |
2075 | - * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset |
|
2076 | 2075 | */ |
2077 | 2076 | public function __destruct() |
2078 | 2077 | { |
@@ -2326,6 +2325,10 @@ discard block |
||
2326 | 2325 | return false; |
2327 | 2326 | } |
2328 | 2327 | |
2328 | + /** |
|
2329 | + * @param string $fromSeparator |
|
2330 | + * @param string $toSeparator |
|
2331 | + */ |
|
2329 | 2332 | public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces) |
2330 | 2333 | { |
2331 | 2334 | $strlen = mb_strlen($formula); |
@@ -2669,6 +2672,9 @@ discard block |
||
2669 | 2672 | return $result; |
2670 | 2673 | } |
2671 | 2674 | |
2675 | + /** |
|
2676 | + * @param string $cellReference |
|
2677 | + */ |
|
2672 | 2678 | public function getValueFromCache($cellReference, &$cellValue) |
2673 | 2679 | { |
2674 | 2680 | // Is calculation cacheing enabled? |
@@ -2812,7 +2818,7 @@ discard block |
||
2812 | 2818 | * |
2813 | 2819 | * @param mixed &$matrix matrix operand |
2814 | 2820 | * |
2815 | - * @return int[] An array comprising the number of rows, and number of columns |
|
2821 | + * @return integer[] An array comprising the number of rows, and number of columns |
|
2816 | 2822 | */ |
2817 | 2823 | private static function getMatrixDimensions(&$matrix) |
2818 | 2824 | { |
@@ -2997,6 +3003,9 @@ discard block |
||
2997 | 3003 | } |
2998 | 3004 | } |
2999 | 3005 | |
3006 | + /** |
|
3007 | + * @param string $formula |
|
3008 | + */ |
|
3000 | 3009 | private function convertMatrixReferences($formula) |
3001 | 3010 | { |
3002 | 3011 | static $matrixReplaceFrom = ['{', ';', '}']; |
@@ -3085,6 +3094,10 @@ discard block |
||
3085 | 3094 | ]; |
3086 | 3095 | |
3087 | 3096 | // Convert infix to postfix notation |
3097 | + |
|
3098 | + /** |
|
3099 | + * @param string $formula |
|
3100 | + */ |
|
3088 | 3101 | private function _parseFormula($formula, Cell $pCell = null) |
3089 | 3102 | { |
3090 | 3103 | if (($formula = $this->convertMatrixReferences(trim($formula))) === false) { |
@@ -3820,6 +3833,9 @@ discard block |
||
3820 | 3833 | return true; |
3821 | 3834 | } |
3822 | 3835 | |
3836 | + /** |
|
3837 | + * @param string|null $cellID |
|
3838 | + */ |
|
3823 | 3839 | private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false) |
3824 | 3840 | { |
3825 | 3841 | // If we're dealing with matrix operations, we want a matrix result |
@@ -3960,7 +3976,7 @@ discard block |
||
3960 | 3976 | |
3961 | 3977 | /** |
3962 | 3978 | * @param string $matrixFunction |
3963 | - * @param mixed $cellID |
|
3979 | + * @param string|null $cellID |
|
3964 | 3980 | * @param mixed $operand1 |
3965 | 3981 | * @param mixed $operand2 |
3966 | 3982 | * @param mixed $operation |
@@ -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 | */ |