Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Sum |
||
8 | { |
||
9 | /** |
||
10 | * SUM, ignoring non-numeric non-error strings. This is eventually used by SUMIF. |
||
11 | * |
||
12 | * SUM computes the sum of all the values and cells referenced in the argument list. |
||
13 | * |
||
14 | * Excel Function: |
||
15 | * SUM(value1[,value2[, ...]]) |
||
16 | * |
||
17 | * @param mixed ...$args Data values |
||
18 | * |
||
19 | * @return float|string |
||
20 | */ |
||
21 | 28 | public static function funcSum(...$args) |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * SUM, returning error for non-numeric strings. This is used by Excel SUM function. |
||
40 | * |
||
41 | * SUM computes the sum of all the values and cells referenced in the argument list. |
||
42 | * |
||
43 | * Excel Function: |
||
44 | * SUM(value1[,value2[, ...]]) |
||
45 | * |
||
46 | * @param mixed ...$args Data values |
||
47 | * |
||
48 | * @return float|string |
||
49 | */ |
||
50 | 83 | public static function funcSumNoStrings(...$args) |
|
69 |