@@ -26,17 +26,17 @@ |
||
26 | 26 | $inputFileName = './sampleData/example1.tsv'; |
27 | 27 | |
28 | 28 | $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType); |
29 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #1 using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
29 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #1 using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
30 | 30 | $reader->setDelimiter("\t"); |
31 | 31 | $spreadsheet = $reader->load($inputFileName); |
32 | 32 | $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME)); |
33 | 33 | |
34 | 34 | echo '<hr />'; |
35 | 35 | |
36 | -echo $spreadsheet->getSheetCount(),' worksheet',(($spreadsheet->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />'; |
|
36 | +echo $spreadsheet->getSheetCount(), ' worksheet', (($spreadsheet->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />'; |
|
37 | 37 | $loadedSheetNames = $spreadsheet->getSheetNames(); |
38 | 38 | foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) { |
39 | - echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Formatted)</b><br />'; |
|
39 | + echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, ' (Formatted)</b><br />'; |
|
40 | 40 | $spreadsheet->setActiveSheetIndexByName($loadedSheetName); |
41 | 41 | $sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true); |
42 | 42 | var_dump($sheetData); |
@@ -294,6 +294,11 @@ discard block |
||
294 | 294 | return isset($c->v) ? (string) $c->v : null; |
295 | 295 | } |
296 | 296 | |
297 | + /** |
|
298 | + * @param string $r |
|
299 | + * @param string $cellDataType |
|
300 | + * @param string $castBaseType |
|
301 | + */ |
|
297 | 302 | private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) |
298 | 303 | { |
299 | 304 | $cellDataType = 'f'; |
@@ -2159,6 +2164,9 @@ discard block |
||
2159 | 2164 | return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add"); |
2160 | 2165 | } |
2161 | 2166 | |
2167 | + /** |
|
2168 | + * @param string $style |
|
2169 | + */ |
|
2162 | 2170 | private static function toCSSArray($style) |
2163 | 2171 | { |
2164 | 2172 | $style = str_replace(["\r", "\n"], '', $style); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * set ribbon XML data. |
219 | 219 | * |
220 | 220 | * @param null|mixed $target |
221 | - * @param null|mixed $xmlData |
|
221 | + * @param string $xmlData |
|
222 | 222 | */ |
223 | 223 | public function setRibbonXMLData($target = null, $xmlData = null) |
224 | 224 | { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * |
235 | 235 | * return string|null|array |
236 | 236 | * |
237 | - * @param mixed $what |
|
237 | + * @param string $what |
|
238 | 238 | * |
239 | 239 | * @return string |
240 | 240 | */ |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /** |
286 | 286 | * retrieve Binaries Ribbon Objects. |
287 | 287 | * |
288 | - * @param mixed $What |
|
288 | + * @param string $What |
|
289 | 289 | */ |
290 | 290 | public function getRibbonBinObjects($What = 'all') |
291 | 291 | { |
@@ -168,16 +168,25 @@ discard block |
||
168 | 168 | return fread($this->fileHandle, $blockSize); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $data |
|
173 | + */ |
|
171 | 174 | private static function startsWithTag($data) |
172 | 175 | { |
173 | 176 | return '<' === substr(trim($data), 0, 1); |
174 | 177 | } |
175 | 178 | |
179 | + /** |
|
180 | + * @param string $data |
|
181 | + */ |
|
176 | 182 | private static function endsWithTag($data) |
177 | 183 | { |
178 | 184 | return '>' === substr(trim($data), -1, 1); |
179 | 185 | } |
180 | 186 | |
187 | + /** |
|
188 | + * @param string $data |
|
189 | + */ |
|
181 | 190 | private static function containsTags($data) |
182 | 191 | { |
183 | 192 | return strlen($data) !== strlen(strip_tags($data)); |
@@ -249,6 +258,10 @@ discard block |
||
249 | 258 | return array_pop($this->nestedColumn); |
250 | 259 | } |
251 | 260 | |
261 | + /** |
|
262 | + * @param \PhpOffice\PhpSpreadsheet\Worksheet $sheet |
|
263 | + * @param integer $row |
|
264 | + */ |
|
252 | 265 | protected function flushCell($sheet, $column, $row, &$cellContent) |
253 | 266 | { |
254 | 267 | if (is_string($cellContent)) { |
@@ -2075,7 +2075,6 @@ discard block |
||
2075 | 2075 | /** |
2076 | 2076 | * Unset an instance of this class. |
2077 | 2077 | * |
2078 | - * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset |
|
2079 | 2078 | */ |
2080 | 2079 | public function __destruct() |
2081 | 2080 | { |
@@ -2329,6 +2328,10 @@ discard block |
||
2329 | 2328 | return false; |
2330 | 2329 | } |
2331 | 2330 | |
2331 | + /** |
|
2332 | + * @param string $fromSeparator |
|
2333 | + * @param string $toSeparator |
|
2334 | + */ |
|
2332 | 2335 | public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces) |
2333 | 2336 | { |
2334 | 2337 | $strlen = mb_strlen($formula); |
@@ -2672,6 +2675,9 @@ discard block |
||
2672 | 2675 | return $result; |
2673 | 2676 | } |
2674 | 2677 | |
2678 | + /** |
|
2679 | + * @param string $cellReference |
|
2680 | + */ |
|
2675 | 2681 | public function getValueFromCache($cellReference, &$cellValue) |
2676 | 2682 | { |
2677 | 2683 | // Is calculation cacheing enabled? |
@@ -2815,7 +2821,7 @@ discard block |
||
2815 | 2821 | * |
2816 | 2822 | * @param mixed &$matrix matrix operand |
2817 | 2823 | * |
2818 | - * @return int[] An array comprising the number of rows, and number of columns |
|
2824 | + * @return integer[] An array comprising the number of rows, and number of columns |
|
2819 | 2825 | */ |
2820 | 2826 | private static function getMatrixDimensions(&$matrix) |
2821 | 2827 | { |
@@ -3000,6 +3006,9 @@ discard block |
||
3000 | 3006 | } |
3001 | 3007 | } |
3002 | 3008 | |
3009 | + /** |
|
3010 | + * @param string $formula |
|
3011 | + */ |
|
3003 | 3012 | private function convertMatrixReferences($formula) |
3004 | 3013 | { |
3005 | 3014 | static $matrixReplaceFrom = ['{', ';', '}']; |
@@ -3088,6 +3097,10 @@ discard block |
||
3088 | 3097 | ]; |
3089 | 3098 | |
3090 | 3099 | // Convert infix to postfix notation |
3100 | + |
|
3101 | + /** |
|
3102 | + * @param string $formula |
|
3103 | + */ |
|
3091 | 3104 | private function _parseFormula($formula, Cell $pCell = null) |
3092 | 3105 | { |
3093 | 3106 | if (($formula = $this->convertMatrixReferences(trim($formula))) === false) { |
@@ -3824,6 +3837,9 @@ discard block |
||
3824 | 3837 | return true; |
3825 | 3838 | } |
3826 | 3839 | |
3840 | + /** |
|
3841 | + * @param string|null $cellID |
|
3842 | + */ |
|
3827 | 3843 | private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false) |
3828 | 3844 | { |
3829 | 3845 | // If we're dealing with matrix operations, we want a matrix result |
@@ -3964,7 +3980,7 @@ discard block |
||
3964 | 3980 | |
3965 | 3981 | /** |
3966 | 3982 | * @param string $matrixFunction |
3967 | - * @param mixed $cellID |
|
3983 | + * @param string|null $cellID |
|
3968 | 3984 | * @param mixed $operand1 |
3969 | 3985 | * @param mixed $operand2 |
3970 | 3986 | * @param mixed $operation |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | * |
472 | 472 | * @category Date/Time Functions |
473 | 473 | * |
474 | - * @param string $dateValue Text that represents a date in a Microsoft Excel date format. |
|
474 | + * @param integer $dateValue Text that represents a date in a Microsoft Excel date format. |
|
475 | 475 | * For example, "1/30/2008" or "30-Jan-2008" are text strings within |
476 | 476 | * quotation marks that represent dates. Using the default date |
477 | 477 | * system in Excel for Windows, date_text must represent a date from |
@@ -657,9 +657,9 @@ discard block |
||
657 | 657 | /** |
658 | 658 | * DATEDIF. |
659 | 659 | * |
660 | - * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object |
|
660 | + * @param integer $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object |
|
661 | 661 | * or a standard date string |
662 | - * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object |
|
662 | + * @param integer $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object |
|
663 | 663 | * or a standard date string |
664 | 664 | * @param string $unit |
665 | 665 | * |
@@ -783,9 +783,9 @@ discard block |
||
783 | 783 | * |
784 | 784 | * @category Date/Time Functions |
785 | 785 | * |
786 | - * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
786 | + * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
787 | 787 | * PHP DateTime object, or a standard date string |
788 | - * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
788 | + * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
789 | 789 | * PHP DateTime object, or a standard date string |
790 | 790 | * @param bool $method US or European Method |
791 | 791 | * FALSE or omitted: U.S. (NASD) method. If the starting date is |
@@ -844,9 +844,9 @@ discard block |
||
844 | 844 | * |
845 | 845 | * @category Date/Time Functions |
846 | 846 | * |
847 | - * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
847 | + * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
848 | 848 | * PHP DateTime object, or a standard date string |
849 | - * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
849 | + * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
850 | 850 | * PHP DateTime object, or a standard date string |
851 | 851 | * @param int $method Method used for the calculation |
852 | 852 | * 0 or omitted US (NASD) 30/360 |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | * Excel Function: |
1136 | 1136 | * DAY(dateValue) |
1137 | 1137 | * |
1138 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1138 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1139 | 1139 | * PHP DateTime object, or a standard date string |
1140 | 1140 | * |
1141 | 1141 | * @return int Day of the month |
@@ -1246,7 +1246,7 @@ discard block |
||
1246 | 1246 | * Excel Function: |
1247 | 1247 | * WEEKNUM(dateValue[,style]) |
1248 | 1248 | * |
1249 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1249 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1250 | 1250 | * PHP DateTime object, or a standard date string |
1251 | 1251 | * @param int $method Week begins on Sunday or Monday |
1252 | 1252 | * 1 or omitted Week begins on Sunday. |
@@ -1299,7 +1299,7 @@ discard block |
||
1299 | 1299 | * Excel Function: |
1300 | 1300 | * MONTH(dateValue) |
1301 | 1301 | * |
1302 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1302 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1303 | 1303 | * PHP DateTime object, or a standard date string |
1304 | 1304 | * |
1305 | 1305 | * @return int Month of the year |
@@ -1332,7 +1332,7 @@ discard block |
||
1332 | 1332 | * Excel Function: |
1333 | 1333 | * YEAR(dateValue) |
1334 | 1334 | * |
1335 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1335 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1336 | 1336 | * PHP DateTime object, or a standard date string |
1337 | 1337 | * |
1338 | 1338 | * @return int Year |
@@ -1364,7 +1364,7 @@ discard block |
||
1364 | 1364 | * Excel Function: |
1365 | 1365 | * HOUR(timeValue) |
1366 | 1366 | * |
1367 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1367 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1368 | 1368 | * PHP DateTime object, or a standard time string |
1369 | 1369 | * |
1370 | 1370 | * @return int Hour |
@@ -1405,7 +1405,7 @@ discard block |
||
1405 | 1405 | * Excel Function: |
1406 | 1406 | * MINUTE(timeValue) |
1407 | 1407 | * |
1408 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1408 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1409 | 1409 | * PHP DateTime object, or a standard time string |
1410 | 1410 | * |
1411 | 1411 | * @return int Minute |
@@ -1446,7 +1446,7 @@ discard block |
||
1446 | 1446 | * Excel Function: |
1447 | 1447 | * SECOND(timeValue) |
1448 | 1448 | * |
1449 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1449 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1450 | 1450 | * PHP DateTime object, or a standard time string |
1451 | 1451 | * |
1452 | 1452 | * @return int Second |
@@ -1489,7 +1489,7 @@ discard block |
||
1489 | 1489 | * Excel Function: |
1490 | 1490 | * EDATE(dateValue,adjustmentMonths) |
1491 | 1491 | * |
1492 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1492 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1493 | 1493 | * PHP DateTime object, or a standard date string |
1494 | 1494 | * @param int $adjustmentMonths The number of months before or after start_date. |
1495 | 1495 | * A positive value for months yields a future date; |
@@ -1535,7 +1535,7 @@ discard block |
||
1535 | 1535 | * Excel Function: |
1536 | 1536 | * EOMONTH(dateValue,adjustmentMonths) |
1537 | 1537 | * |
1538 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1538 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1539 | 1539 | * PHP DateTime object, or a standard date string |
1540 | 1540 | * @param int $adjustmentMonths The number of months before or after start_date. |
1541 | 1541 | * A positive value for months yields a future date; |
@@ -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 |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * Convert a MS serialized datetime value from Excel to a PHP Date/Time object. |
169 | 169 | * |
170 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
170 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
171 | 171 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
172 | 172 | * if you don't want to treat it as a UTC value |
173 | 173 | * Use the default (UST) unless you absolutely need a conversion |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * Convert a MS serialized datetime value from Excel to a unix timestamp. |
210 | 210 | * |
211 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
211 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
212 | 212 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
213 | 213 | * if you don't want to treat it as a UTC value |
214 | 214 | * Use the default (UST) unless you absolutely need a conversion |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Convert a date from PHP to an MS Excel serialized date/time value. |
228 | 228 | * |
229 | - * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string |
|
229 | + * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string |
|
230 | 230 | * |
231 | 231 | * @return float|bool Excel date/time value |
232 | 232 | * or boolean FALSE on failure |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** |
267 | 267 | * Convert a Unix timestamp to an MS Excel serialized date/time value. |
268 | 268 | * |
269 | - * @param \DateTimeInterface $dateValue Unix Timestamp |
|
269 | + * @param integer $dateValue Unix Timestamp |
|
270 | 270 | * |
271 | 271 | * @return float MS Excel serialized date/time value |
272 | 272 | */ |