@@ -126,7 +126,7 @@ |
||
126 | 126 | /** |
127 | 127 | * Return the current cache storage class |
128 | 128 | * |
129 | - * @return \CachedObjectStorage\ICache|null |
|
129 | + * @return string |
|
130 | 130 | **/ |
131 | 131 | public static function getCacheStorageClass() |
132 | 132 | { |
@@ -2110,7 +2110,6 @@ discard block |
||
2110 | 2110 | * Unset an instance of this class |
2111 | 2111 | * |
2112 | 2112 | * @access public |
2113 | - * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset |
|
2114 | 2113 | */ |
2115 | 2114 | public function __destruct() |
2116 | 2115 | { |
@@ -2401,6 +2400,10 @@ discard block |
||
2401 | 2400 | return $formula; |
2402 | 2401 | } |
2403 | 2402 | |
2403 | + /** |
|
2404 | + * @param string $fromSeparator |
|
2405 | + * @param string $toSeparator |
|
2406 | + */ |
|
2404 | 2407 | private static function translateFormula($from, $to, $formula, $fromSeparator, $toSeparator) |
2405 | 2408 | { |
2406 | 2409 | // Convert any Excel function names to the required language |
@@ -2718,6 +2721,9 @@ discard block |
||
2718 | 2721 | } |
2719 | 2722 | |
2720 | 2723 | |
2724 | + /** |
|
2725 | + * @param string $cellReference |
|
2726 | + */ |
|
2721 | 2727 | public function getValueFromCache($cellReference, &$cellValue) |
2722 | 2728 | { |
2723 | 2729 | // Is calculation cacheing enabled? |
@@ -2732,6 +2738,9 @@ discard block |
||
2732 | 2738 | return false; |
2733 | 2739 | } |
2734 | 2740 | |
2741 | + /** |
|
2742 | + * @param string $cellReference |
|
2743 | + */ |
|
2735 | 2744 | public function saveValueToCache($cellReference, $cellValue) |
2736 | 2745 | { |
2737 | 2746 | if ($this->calculationCacheEnabled) { |
@@ -2851,7 +2860,7 @@ discard block |
||
2851 | 2860 | * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0 |
2852 | 2861 | * |
2853 | 2862 | * @param mixed &$matrix matrix operand |
2854 | - * @return array An array comprising the number of rows, and number of columns |
|
2863 | + * @return integer[] An array comprising the number of rows, and number of columns |
|
2855 | 2864 | */ |
2856 | 2865 | private static function getMatrixDimensions(&$matrix) |
2857 | 2866 | { |
@@ -3002,7 +3011,7 @@ discard block |
||
3002 | 3011 | * Format type and details of an operand for display in the log (based on operand type) |
3003 | 3012 | * |
3004 | 3013 | * @param mixed $value First matrix operand |
3005 | - * @return mixed |
|
3014 | + * @return string|null |
|
3006 | 3015 | */ |
3007 | 3016 | private function showTypeDetails($value) |
3008 | 3017 | { |
@@ -3036,6 +3045,9 @@ discard block |
||
3036 | 3045 | } |
3037 | 3046 | |
3038 | 3047 | |
3048 | + /** |
|
3049 | + * @param string $formula |
|
3050 | + */ |
|
3039 | 3051 | private function convertMatrixReferences($formula) |
3040 | 3052 | { |
3041 | 3053 | static $matrixReplaceFrom = array('{', ';', '}'); |
@@ -3126,6 +3138,10 @@ discard block |
||
3126 | 3138 | ); |
3127 | 3139 | |
3128 | 3140 | // Convert infix to postfix notation |
3141 | + |
|
3142 | + /** |
|
3143 | + * @param string $formula |
|
3144 | + */ |
|
3129 | 3145 | private function _parseFormula($formula, Cell $pCell = null) |
3130 | 3146 | { |
3131 | 3147 | if (($formula = $this->convertMatrixReferences(trim($formula))) === false) { |
@@ -3493,6 +3509,10 @@ discard block |
||
3493 | 3509 | } |
3494 | 3510 | |
3495 | 3511 | // evaluate postfix notation |
3512 | + |
|
3513 | + /** |
|
3514 | + * @param string $cellID |
|
3515 | + */ |
|
3496 | 3516 | private function processTokenStack($tokens, $cellID = null, Cell $pCell = null) |
3497 | 3517 | { |
3498 | 3518 | if ($tokens == false) { |
@@ -4077,6 +4097,9 @@ discard block |
||
4077 | 4097 | return strcmp($inversedStr1, $inversedStr2); |
4078 | 4098 | } |
4079 | 4099 | |
4100 | + /** |
|
4101 | + * @param string $matrixFunction |
|
4102 | + */ |
|
4080 | 4103 | private function executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack) |
4081 | 4104 | { |
4082 | 4105 | // Validate the two operands |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | * |
473 | 473 | * @access public |
474 | 474 | * @category Date/Time Functions |
475 | - * @param string $dateValue Text that represents a date in a Microsoft Excel date format. |
|
475 | + * @param integer $dateValue Text that represents a date in a Microsoft Excel date format. |
|
476 | 476 | * For example, "1/30/2008" or "30-Jan-2008" are text strings within |
477 | 477 | * quotation marks that represent dates. Using the default date |
478 | 478 | * 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 | * @return integer Interval between the dates |
@@ -771,9 +771,9 @@ discard block |
||
771 | 771 | * |
772 | 772 | * @access public |
773 | 773 | * @category Date/Time Functions |
774 | - * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
774 | + * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
775 | 775 | * PHP DateTime object, or a standard date string |
776 | - * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
776 | + * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
777 | 777 | * PHP DateTime object, or a standard date string |
778 | 778 | * @param boolean $method US or European Method |
779 | 779 | * FALSE or omitted: U.S. (NASD) method. If the starting date is |
@@ -832,9 +832,9 @@ discard block |
||
832 | 832 | * |
833 | 833 | * @access public |
834 | 834 | * @category Date/Time Functions |
835 | - * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
835 | + * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer), |
|
836 | 836 | * PHP DateTime object, or a standard date string |
837 | - * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
837 | + * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer), |
|
838 | 838 | * PHP DateTime object, or a standard date string |
839 | 839 | * @param integer $method Method used for the calculation |
840 | 840 | * 0 or omitted US (NASD) 30/360 |
@@ -934,10 +934,6 @@ discard block |
||
934 | 934 | * PHP DateTime object, or a standard date string |
935 | 935 | * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), |
936 | 936 | * PHP DateTime object, or a standard date string |
937 | - * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date |
|
938 | - * timestamp (integer), PHP DateTime object, or a standard date |
|
939 | - * strings that will be excluded from the working calendar, such |
|
940 | - * as state and federal holidays and floating holidays. |
|
941 | 937 | * @return integer Interval between the dates |
942 | 938 | */ |
943 | 939 | public static function NETWORKDAYS($startDate, $endDate) |
@@ -1020,10 +1016,6 @@ discard block |
||
1020 | 1016 | * @param integer $endDays The number of nonweekend and nonholiday days before or after |
1021 | 1017 | * startDate. A positive value for days yields a future date; a |
1022 | 1018 | * negative value yields a past date. |
1023 | - * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date |
|
1024 | - * timestamp (integer), PHP DateTime object, or a standard date |
|
1025 | - * strings that will be excluded from the working calendar, such |
|
1026 | - * as state and federal holidays and floating holidays. |
|
1027 | 1019 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
1028 | 1020 | * depending on the value of the ReturnDateType flag |
1029 | 1021 | */ |
@@ -1128,7 +1120,7 @@ discard block |
||
1128 | 1120 | * Excel Function: |
1129 | 1121 | * DAY(dateValue) |
1130 | 1122 | * |
1131 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1123 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1132 | 1124 | * PHP DateTime object, or a standard date string |
1133 | 1125 | * @return int Day of the month |
1134 | 1126 | */ |
@@ -1162,7 +1154,7 @@ discard block |
||
1162 | 1154 | * Excel Function: |
1163 | 1155 | * WEEKDAY(dateValue[,style]) |
1164 | 1156 | * |
1165 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1157 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1166 | 1158 | * PHP DateTime object, or a standard date string |
1167 | 1159 | * @param int $style A number that determines the type of return value |
1168 | 1160 | * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday). |
@@ -1239,9 +1231,9 @@ discard block |
||
1239 | 1231 | * Excel Function: |
1240 | 1232 | * WEEKNUM(dateValue[,style]) |
1241 | 1233 | * |
1242 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1234 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1243 | 1235 | * PHP DateTime object, or a standard date string |
1244 | - * @param boolean $method Week begins on Sunday or Monday |
|
1236 | + * @param integer $method Week begins on Sunday or Monday |
|
1245 | 1237 | * 1 or omitted Week begins on Sunday. |
1246 | 1238 | * 2 Week begins on Monday. |
1247 | 1239 | * @return int Week Number |
@@ -1288,7 +1280,7 @@ discard block |
||
1288 | 1280 | * Excel Function: |
1289 | 1281 | * MONTH(dateValue) |
1290 | 1282 | * |
1291 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1283 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1292 | 1284 | * PHP DateTime object, or a standard date string |
1293 | 1285 | * @return int Month of the year |
1294 | 1286 | */ |
@@ -1321,7 +1313,7 @@ discard block |
||
1321 | 1313 | * Excel Function: |
1322 | 1314 | * YEAR(dateValue) |
1323 | 1315 | * |
1324 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1316 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1325 | 1317 | * PHP DateTime object, or a standard date string |
1326 | 1318 | * @return int Year |
1327 | 1319 | */ |
@@ -1353,7 +1345,7 @@ discard block |
||
1353 | 1345 | * Excel Function: |
1354 | 1346 | * HOUR(timeValue) |
1355 | 1347 | * |
1356 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1348 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1357 | 1349 | * PHP DateTime object, or a standard time string |
1358 | 1350 | * @return int Hour |
1359 | 1351 | */ |
@@ -1394,7 +1386,7 @@ discard block |
||
1394 | 1386 | * Excel Function: |
1395 | 1387 | * MINUTE(timeValue) |
1396 | 1388 | * |
1397 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1389 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1398 | 1390 | * PHP DateTime object, or a standard time string |
1399 | 1391 | * @return int Minute |
1400 | 1392 | */ |
@@ -1435,7 +1427,7 @@ discard block |
||
1435 | 1427 | * Excel Function: |
1436 | 1428 | * SECOND(timeValue) |
1437 | 1429 | * |
1438 | - * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1430 | + * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer), |
|
1439 | 1431 | * PHP DateTime object, or a standard time string |
1440 | 1432 | * @return int Second |
1441 | 1433 | */ |
@@ -1478,7 +1470,7 @@ discard block |
||
1478 | 1470 | * Excel Function: |
1479 | 1471 | * EDATE(dateValue,adjustmentMonths) |
1480 | 1472 | * |
1481 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1473 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1482 | 1474 | * PHP DateTime object, or a standard date string |
1483 | 1475 | * @param int $adjustmentMonths The number of months before or after start_date. |
1484 | 1476 | * A positive value for months yields a future date; |
@@ -1524,7 +1516,7 @@ discard block |
||
1524 | 1516 | * Excel Function: |
1525 | 1517 | * EOMONTH(dateValue,adjustmentMonths) |
1526 | 1518 | * |
1527 | - * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1519 | + * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer), |
|
1528 | 1520 | * PHP DateTime object, or a standard date string |
1529 | 1521 | * @param int $adjustmentMonths The number of months before or after start_date. |
1530 | 1522 | * A positive value for months yields a future date; |
@@ -1826,7 +1826,7 @@ discard block |
||
1826 | 1826 | * @access public |
1827 | 1827 | * @category Engineering Functions |
1828 | 1828 | * @param string $complexNumber The complex number for which you want the real coefficient. |
1829 | - * @return float |
|
1829 | + * @return string |
|
1830 | 1830 | */ |
1831 | 1831 | public static function IMREAL($complexNumber) |
1832 | 1832 | { |
@@ -2260,7 +2260,6 @@ discard block |
||
2260 | 2260 | * Excel Function: |
2261 | 2261 | * IMSUM(complexNumber[,complexNumber[,...]]) |
2262 | 2262 | * |
2263 | - * @param string $complexNumber,... Series of complex numbers to add |
|
2264 | 2263 | * @return string |
2265 | 2264 | */ |
2266 | 2265 | public static function IMSUM() |
@@ -2299,7 +2298,6 @@ discard block |
||
2299 | 2298 | * Excel Function: |
2300 | 2299 | * IMPRODUCT(complexNumber[,complexNumber[,...]]) |
2301 | 2300 | * |
2302 | - * @param string $complexNumber,... Series of complex numbers to multiply |
|
2303 | 2301 | * @return string |
2304 | 2302 | */ |
2305 | 2303 | public static function IMPRODUCT() |
@@ -2342,7 +2340,7 @@ discard block |
||
2342 | 2340 | * DELTA(a[,b]) |
2343 | 2341 | * |
2344 | 2342 | * @param float $a The first number. |
2345 | - * @param float $b The second number. If omitted, b is assumed to be zero. |
|
2343 | + * @param integer $b The second number. If omitted, b is assumed to be zero. |
|
2346 | 2344 | * @return int |
2347 | 2345 | */ |
2348 | 2346 | public static function DELTA($a, $b = 0) |
@@ -2365,7 +2363,7 @@ discard block |
||
2365 | 2363 | * functions you calculate the count of values that exceed a threshold. |
2366 | 2364 | * |
2367 | 2365 | * @param float $number The value to test against step. |
2368 | - * @param float $step The threshold value. |
|
2366 | + * @param integer $step The threshold value. |
|
2369 | 2367 | * If you omit a value for step, GESTEP uses zero. |
2370 | 2368 | * @return int |
2371 | 2369 | */ |
@@ -63,6 +63,10 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $frequency |
|
68 | + * @param boolean $next |
|
69 | + */ |
|
66 | 70 | private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next) |
67 | 71 | { |
68 | 72 | $months = 12 / $frequency; |
@@ -85,6 +89,9 @@ discard block |
||
85 | 89 | } |
86 | 90 | |
87 | 91 | |
92 | + /** |
|
93 | + * @param integer $frequency |
|
94 | + */ |
|
88 | 95 | private static function isValidFrequency($frequency) |
89 | 96 | { |
90 | 97 | if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { |
@@ -162,7 +169,7 @@ discard block |
||
162 | 169 | * The security settlement date is the date after the issue date |
163 | 170 | * when the security is traded to the buyer. |
164 | 171 | * @param float $rate The security's annual coupon rate. |
165 | - * @param float $par The security's par value. |
|
172 | + * @param integer $par The security's par value. |
|
166 | 173 | * If you omit par, ACCRINT uses $1,000. |
167 | 174 | * @param integer $frequency the number of coupon payments per year. |
168 | 175 | * Valid frequency values are: |
@@ -432,6 +439,7 @@ discard block |
||
432 | 439 | * 2 Actual/360 |
433 | 440 | * 3 Actual/365 |
434 | 441 | * 4 European 30/360 |
442 | + * @param integer $frequency |
|
435 | 443 | * @return float |
436 | 444 | */ |
437 | 445 | public static function COUPDAYBS($settlement, $maturity, $frequency, $basis = 0) |
@@ -491,6 +499,7 @@ discard block |
||
491 | 499 | * 2 Actual/360 |
492 | 500 | * 3 Actual/365 |
493 | 501 | * 4 European 30/360 |
502 | + * @param integer $frequency |
|
494 | 503 | * @return float |
495 | 504 | */ |
496 | 505 | public static function COUPDAYS($settlement, $maturity, $frequency, $basis = 0) |
@@ -564,6 +573,7 @@ discard block |
||
564 | 573 | * 2 Actual/360 |
565 | 574 | * 3 Actual/365 |
566 | 575 | * 4 European 30/360 |
576 | + * @param integer $frequency |
|
567 | 577 | * @return float |
568 | 578 | */ |
569 | 579 | public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis = 0) |
@@ -681,6 +691,7 @@ discard block |
||
681 | 691 | * 2 Actual/360 |
682 | 692 | * 3 Actual/365 |
683 | 693 | * 4 European 30/360 |
694 | + * @param integer $frequency |
|
684 | 695 | * @return integer |
685 | 696 | */ |
686 | 697 | public static function COUPNUM($settlement, $maturity, $frequency, $basis = 0) |
@@ -1144,7 +1155,7 @@ discard block |
||
1144 | 1155 | * |
1145 | 1156 | * @access public |
1146 | 1157 | * @category Financial Functions |
1147 | - * @param float $nominal_rate Nominal interest rate |
|
1158 | + * @param integer $nominal_rate Nominal interest rate |
|
1148 | 1159 | * @param integer $npery Number of compounding payments per year |
1149 | 1160 | * @return float |
1150 | 1161 | */ |
@@ -1172,12 +1183,12 @@ discard block |
||
1172 | 1183 | * |
1173 | 1184 | * @access public |
1174 | 1185 | * @category Financial Functions |
1175 | - * @param float $rate The interest rate per period |
|
1186 | + * @param integer $rate The interest rate per period |
|
1176 | 1187 | * @param int $nper Total number of payment periods in an annuity |
1177 | - * @param float $pmt The payment made each period: it cannot change over the |
|
1188 | + * @param integer $pmt The payment made each period: it cannot change over the |
|
1178 | 1189 | * life of the annuity. Typically, pmt contains principal |
1179 | 1190 | * and interest but no other fees or taxes. |
1180 | - * @param float $pv Present Value, or the lump-sum amount that a series of |
|
1191 | + * @param integer $pv Present Value, or the lump-sum amount that a series of |
|
1181 | 1192 | * future payments is worth right now. |
1182 | 1193 | * @param integer $type A number 0 or 1 and indicates when payments are due: |
1183 | 1194 | * 0 or omitted At the end of the period. |
@@ -1293,7 +1304,7 @@ discard block |
||
1293 | 1304 | * @param int $per Period for which we want to find the interest |
1294 | 1305 | * @param int $nper Number of periods |
1295 | 1306 | * @param float $pv Present Value |
1296 | - * @param float $fv Future Value |
|
1307 | + * @param integer $fv Future Value |
|
1297 | 1308 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1298 | 1309 | * @return float |
1299 | 1310 | */ |
@@ -1485,7 +1496,7 @@ discard block |
||
1485 | 1496 | * |
1486 | 1497 | * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. |
1487 | 1498 | * |
1488 | - * @param float $effect_rate Effective interest rate |
|
1499 | + * @param integer $effect_rate Effective interest rate |
|
1489 | 1500 | * @param int $npery Number of compounding payments per year |
1490 | 1501 | * @return float |
1491 | 1502 | */ |
@@ -1509,10 +1520,10 @@ discard block |
||
1509 | 1520 | * |
1510 | 1521 | * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. |
1511 | 1522 | * |
1512 | - * @param float $rate Interest rate per period |
|
1523 | + * @param integer $rate Interest rate per period |
|
1513 | 1524 | * @param int $pmt Periodic payment (annuity) |
1514 | - * @param float $pv Present Value |
|
1515 | - * @param float $fv Future Value |
|
1525 | + * @param integer $pv Present Value |
|
1526 | + * @param integer $fv Future Value |
|
1516 | 1527 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1517 | 1528 | * @return float |
1518 | 1529 | */ |
@@ -1575,10 +1586,10 @@ discard block |
||
1575 | 1586 | * |
1576 | 1587 | * Returns the constant payment (annuity) for a cash flow with a constant interest rate. |
1577 | 1588 | * |
1578 | - * @param float $rate Interest rate per period |
|
1589 | + * @param integer $rate Interest rate per period |
|
1579 | 1590 | * @param int $nper Number of periods |
1580 | - * @param float $pv Present Value |
|
1581 | - * @param float $fv Future Value |
|
1591 | + * @param integer $pv Present Value |
|
1592 | + * @param integer $fv Future Value |
|
1582 | 1593 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1583 | 1594 | * @return float |
1584 | 1595 | */ |
@@ -1612,7 +1623,7 @@ discard block |
||
1612 | 1623 | * @param int $per Period for which we want to find the interest |
1613 | 1624 | * @param int $nper Number of periods |
1614 | 1625 | * @param float $pv Present Value |
1615 | - * @param float $fv Future Value |
|
1626 | + * @param integer $fv Future Value |
|
1616 | 1627 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1617 | 1628 | * @return float |
1618 | 1629 | */ |
@@ -1795,10 +1806,10 @@ discard block |
||
1795 | 1806 | * |
1796 | 1807 | * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). |
1797 | 1808 | * |
1798 | - * @param float $rate Interest rate per period |
|
1809 | + * @param integer $rate Interest rate per period |
|
1799 | 1810 | * @param int $nper Number of periods |
1800 | - * @param float $pmt Periodic payment (annuity) |
|
1801 | - * @param float $fv Future Value |
|
1811 | + * @param integer $pmt Periodic payment (annuity) |
|
1812 | + * @param integer $fv Future Value |
|
1802 | 1813 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1803 | 1814 | * @return float |
1804 | 1815 | */ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * Get Token |
117 | 117 | * |
118 | 118 | * @param int $pId Token id |
119 | - * @return string |
|
119 | + * @return FormulaToken |
|
120 | 120 | * @throws Exception |
121 | 121 | */ |
122 | 122 | public function getToken($pId = 0) |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * Get Token count |
133 | 133 | * |
134 | - * @return string |
|
134 | + * @return integer |
|
135 | 135 | */ |
136 | 136 | public function getTokenCount() |
137 | 137 | { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * IS_EVEN |
419 | 419 | * |
420 | 420 | * @param mixed $value Value to check |
421 | - * @return boolean |
|
421 | + * @return string|boolean |
|
422 | 422 | */ |
423 | 423 | public static function isEven($value = null) |
424 | 424 | { |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | * IS_ODD |
439 | 439 | * |
440 | 440 | * @param mixed $value Value to check |
441 | - * @return boolean |
|
441 | + * @return string|boolean |
|
442 | 442 | */ |
443 | 443 | public static function isOdd($value = null) |
444 | 444 | { |
@@ -83,8 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @access public |
85 | 85 | * @category Logical Functions |
86 | - * @param mixed $arg,... Data values |
|
87 | - * @return boolean The logical AND of the arguments. |
|
86 | + * @return string|boolean The logical AND of the arguments. |
|
88 | 87 | */ |
89 | 88 | public static function logicalAnd() |
90 | 89 | { |
@@ -139,8 +138,7 @@ discard block |
||
139 | 138 | * |
140 | 139 | * @access public |
141 | 140 | * @category Logical Functions |
142 | - * @param mixed $arg,... Data values |
|
143 | - * @return boolean The logical OR of the arguments. |
|
141 | + * @return string|boolean The logical OR of the arguments. |
|
144 | 142 | */ |
145 | 143 | public static function logicalOr() |
146 | 144 | { |
@@ -195,7 +193,7 @@ discard block |
||
195 | 193 | * @access public |
196 | 194 | * @category Logical Functions |
197 | 195 | * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE |
198 | - * @return boolean The boolean inverse of the argument. |
|
196 | + * @return boolean|string The boolean inverse of the argument. |
|
199 | 197 | */ |
200 | 198 | public static function NOT($logical = false) |
201 | 199 | { |
@@ -241,8 +239,8 @@ discard block |
||
241 | 239 | * |
242 | 240 | * @access public |
243 | 241 | * @category Logical Functions |
244 | - * @param mixed $condition Condition to evaluate |
|
245 | - * @param mixed $returnIfTrue Value to return when condition is true |
|
242 | + * @param boolean $condition Condition to evaluate |
|
243 | + * @param integer $returnIfTrue Value to return when condition is true |
|
246 | 244 | * @param mixed $returnIfFalse Optional value to return when condition is false |
247 | 245 | * @return mixed The value of returnIfTrue or returnIfFalse determined by condition |
248 | 246 | */ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param row Row number to use in the cell reference |
41 | 41 | * @param column Column number to use in the cell reference |
42 | - * @param relativity Flag indicating the type of reference to return |
|
42 | + * @param relativity integer indicating the type of reference to return |
|
43 | 43 | * 1 or omitted Absolute |
44 | 44 | * 2 Absolute row; relative column |
45 | 45 | * 3 Relative row; absolute column |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | * |
353 | 353 | * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or |
354 | 354 | * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. |
355 | - * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. |
|
355 | + * @param rows integer number of rows, up or down, that you want the upper-left cell to refer to. |
|
356 | 356 | * Using 5 as the rows argument specifies that the upper-left cell in the reference is |
357 | 357 | * five rows below reference. Rows can be positive (which means below the starting reference) |
358 | 358 | * or negative (which means above the starting reference). |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | * |
491 | 491 | * @param lookup_value The value that you want to match in lookup_array |
492 | 492 | * @param lookup_array The range of cells being searched |
493 | - * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. |
|
493 | + * @param match_type integer number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. |
|
494 | 494 | * @return integer The relative position of the found item |
495 | 495 | */ |
496 | 496 | public static function MATCH($lookup_value, $lookup_array, $match_type = 1) |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number. |
681 | 681 | * @param lookup_value The value that you want to match in lookup_array |
682 | 682 | * @param lookup_array The range of cells being searched |
683 | - * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. |
|
683 | + * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1. |
|
684 | 684 | * @param not_exact_match Determines if you are looking for an exact match based on lookup_value. |
685 | 685 | * @return mixed The value of the found cell |
686 | 686 | */ |