Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like Calculation often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Calculation, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
43 | class Calculation |
||
44 | { |
||
45 | /** Constants */ |
||
46 | /** Regular Expressions */ |
||
47 | // Numeric operand |
||
48 | const CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?'; |
||
49 | // String operand |
||
50 | const CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"'; |
||
51 | // Opening bracket |
||
52 | const CALCULATION_REGEXP_OPENBRACE = '\('; |
||
53 | // Function (allow for the old @ symbol that could be used to prefix a function, but we'll ignore it) |
||
54 | const CALCULATION_REGEXP_FUNCTION = '@?([A-Z][A-Z0-9\.]*)[\s]*\('; |
||
55 | // Cell reference (cell or range of cells, with or without a sheet reference) |
||
56 | const CALCULATION_REGEXP_CELLREF = CALCULATION_REGEXP_CELLREF; |
||
57 | // Named Range of cells |
||
58 | const CALCULATION_REGEXP_NAMEDRANGE = CALCULATION_REGEXP_NAMEDRANGE; |
||
59 | // Error |
||
60 | const CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?'; |
||
61 | |||
62 | /** constants */ |
||
63 | const RETURN_ARRAY_AS_ERROR = 'error'; |
||
64 | const RETURN_ARRAY_AS_VALUE = 'value'; |
||
65 | const RETURN_ARRAY_AS_ARRAY = 'array'; |
||
66 | |||
67 | private static $returnArrayAsType = self::RETURN_ARRAY_AS_VALUE; |
||
68 | |||
69 | /** |
||
70 | * Instance of this class |
||
71 | * |
||
72 | * @var \PhpOffice\PhpSpreadsheet\Calculation |
||
73 | */ |
||
74 | private static $instance; |
||
75 | |||
76 | /** |
||
77 | * Instance of the spreadsheet this Calculation Engine is using |
||
78 | * |
||
79 | * @var PhpSpreadsheet |
||
80 | */ |
||
81 | private $spreadsheet; |
||
82 | |||
83 | /** |
||
84 | * List of instances of the calculation engine that we've instantiated for individual spreadsheets |
||
85 | * |
||
86 | * @var \PhpOffice\PhpSpreadsheet\Calculation[] |
||
87 | */ |
||
88 | private static $spreadsheetSets; |
||
|
|||
89 | |||
90 | /** |
||
91 | * Calculation cache |
||
92 | * |
||
93 | * @var array |
||
94 | */ |
||
95 | private $calculationCache = []; |
||
96 | |||
97 | /** |
||
98 | * Calculation cache enabled |
||
99 | * |
||
100 | * @var bool |
||
101 | */ |
||
102 | private $calculationCacheEnabled = true; |
||
103 | |||
104 | /** |
||
105 | * List of operators that can be used within formulae |
||
106 | * The true/false value indicates whether it is a binary operator or a unary operator |
||
107 | * |
||
108 | * @var array |
||
109 | */ |
||
110 | private static $operators = [ |
||
111 | '+' => true, '-' => true, '*' => true, '/' => true, |
||
112 | '^' => true, '&' => true, '%' => false, '~' => false, |
||
113 | '>' => true, '<' => true, '=' => true, '>=' => true, |
||
114 | '<=' => true, '<>' => true, '|' => true, ':' => true, |
||
115 | ]; |
||
116 | |||
117 | /** |
||
118 | * List of binary operators (those that expect two operands) |
||
119 | * |
||
120 | * @var array |
||
121 | */ |
||
122 | private static $binaryOperators = [ |
||
123 | '+' => true, '-' => true, '*' => true, '/' => true, |
||
124 | '^' => true, '&' => true, '>' => true, '<' => true, |
||
125 | '=' => true, '>=' => true, '<=' => true, '<>' => true, |
||
126 | '|' => true, ':' => true, |
||
127 | ]; |
||
128 | |||
129 | /** |
||
130 | * The debug log generated by the calculation engine |
||
131 | * |
||
132 | * @var CalcEngine\Logger |
||
133 | */ |
||
134 | private $debugLog; |
||
135 | |||
136 | /** |
||
137 | * Flag to determine how formula errors should be handled |
||
138 | * If true, then a user error will be triggered |
||
139 | * If false, then an exception will be thrown |
||
140 | * |
||
141 | * @var bool |
||
142 | */ |
||
143 | public $suppressFormulaErrors = false; |
||
144 | |||
145 | /** |
||
146 | * Error message for any error that was raised/thrown by the calculation engine |
||
147 | * |
||
148 | * @var string |
||
149 | */ |
||
150 | public $formulaError = null; |
||
151 | |||
152 | /** |
||
153 | * An array of the nested cell references accessed by the calculation engine, used for the debug log |
||
154 | * |
||
155 | * @var array of string |
||
156 | */ |
||
157 | private $cyclicReferenceStack; |
||
158 | |||
159 | private $cellStack = []; |
||
160 | |||
161 | /** |
||
162 | * Current iteration counter for cyclic formulae |
||
163 | * If the value is 0 (or less) then cyclic formulae will throw an exception, |
||
164 | * otherwise they will iterate to the limit defined here before returning a result |
||
165 | * |
||
166 | * @var int |
||
167 | */ |
||
168 | private $cyclicFormulaCounter = 1; |
||
169 | |||
170 | private $cyclicFormulaCell = ''; |
||
171 | |||
172 | /** |
||
173 | * Number of iterations for cyclic formulae |
||
174 | * |
||
175 | * @var int |
||
176 | */ |
||
177 | public $cyclicFormulaCount = 1; |
||
178 | |||
179 | /** |
||
180 | * Epsilon Precision used for comparisons in calculations |
||
181 | * |
||
182 | * @var float |
||
183 | */ |
||
184 | private $delta = 0.1e-12; |
||
185 | |||
186 | /** |
||
187 | * The current locale setting |
||
188 | * |
||
189 | * @var string |
||
190 | */ |
||
191 | private static $localeLanguage = 'en_us'; // US English (default locale) |
||
192 | |||
193 | /** |
||
194 | * List of available locale settings |
||
195 | * Note that this is read for the locale subdirectory only when requested |
||
196 | * |
||
197 | * @var string[] |
||
198 | */ |
||
199 | private static $validLocaleLanguages = [ |
||
200 | 'en', // English (default language) |
||
201 | ]; |
||
202 | |||
203 | /** |
||
204 | * Locale-specific argument separator for function arguments |
||
205 | * |
||
206 | * @var string |
||
207 | */ |
||
208 | private static $localeArgumentSeparator = ','; |
||
209 | private static $localeFunctions = []; |
||
210 | |||
211 | /** |
||
212 | * Locale-specific translations for Excel constants (True, False and Null) |
||
213 | * |
||
214 | * @var string[] |
||
215 | */ |
||
216 | public static $localeBoolean = [ |
||
217 | 'TRUE' => 'TRUE', |
||
218 | 'FALSE' => 'FALSE', |
||
219 | 'NULL' => 'NULL', |
||
220 | ]; |
||
221 | |||
222 | /** |
||
223 | * Excel constant string translations to their PHP equivalents |
||
224 | * Constant conversion from text name/value to actual (datatyped) value |
||
225 | * |
||
226 | * @var string[] |
||
227 | */ |
||
228 | private static $excelConstants = [ |
||
229 | 'TRUE' => true, |
||
230 | 'FALSE' => false, |
||
231 | 'NULL' => null, |
||
232 | ]; |
||
233 | |||
234 | // PhpSpreadsheet functions |
||
235 | private static $phpSpreadsheetFunctions = [ |
||
236 | 'ABS' => [ |
||
237 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
238 | 'functionCall' => 'abs', |
||
239 | 'argumentCount' => '1', |
||
240 | ], |
||
241 | 'ACCRINT' => [ |
||
242 | 'category' => Category::CATEGORY_FINANCIAL, |
||
243 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::ACCRINT', |
||
244 | 'argumentCount' => '4-7', |
||
245 | ], |
||
246 | 'ACCRINTM' => [ |
||
247 | 'category' => Category::CATEGORY_FINANCIAL, |
||
248 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::ACCRINTM', |
||
249 | 'argumentCount' => '3-5', |
||
250 | ], |
||
251 | 'ACOS' => [ |
||
252 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
253 | 'functionCall' => 'acos', |
||
254 | 'argumentCount' => '1', |
||
255 | ], |
||
256 | 'ACOSH' => [ |
||
257 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
258 | 'functionCall' => 'acosh', |
||
259 | 'argumentCount' => '1', |
||
260 | ], |
||
261 | 'ADDRESS' => [ |
||
262 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
263 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::cellAddress', |
||
264 | 'argumentCount' => '2-5', |
||
265 | ], |
||
266 | 'AMORDEGRC' => [ |
||
267 | 'category' => Category::CATEGORY_FINANCIAL, |
||
268 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::AMORDEGRC', |
||
269 | 'argumentCount' => '6,7', |
||
270 | ], |
||
271 | 'AMORLINC' => [ |
||
272 | 'category' => Category::CATEGORY_FINANCIAL, |
||
273 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::AMORLINC', |
||
274 | 'argumentCount' => '6,7', |
||
275 | ], |
||
276 | 'AND' => [ |
||
277 | 'category' => Category::CATEGORY_LOGICAL, |
||
278 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::logicalAnd', |
||
279 | 'argumentCount' => '1+', |
||
280 | ], |
||
281 | 'AREAS' => [ |
||
282 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
283 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
284 | 'argumentCount' => '1', |
||
285 | ], |
||
286 | 'ASC' => [ |
||
287 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
288 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
289 | 'argumentCount' => '1', |
||
290 | ], |
||
291 | 'ASIN' => [ |
||
292 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
293 | 'functionCall' => 'asin', |
||
294 | 'argumentCount' => '1', |
||
295 | ], |
||
296 | 'ASINH' => [ |
||
297 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
298 | 'functionCall' => 'asinh', |
||
299 | 'argumentCount' => '1', |
||
300 | ], |
||
301 | 'ATAN' => [ |
||
302 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
303 | 'functionCall' => 'atan', |
||
304 | 'argumentCount' => '1', |
||
305 | ], |
||
306 | 'ATAN2' => [ |
||
307 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
308 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::ATAN2', |
||
309 | 'argumentCount' => '2', |
||
310 | ], |
||
311 | 'ATANH' => [ |
||
312 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
313 | 'functionCall' => 'atanh', |
||
314 | 'argumentCount' => '1', |
||
315 | ], |
||
316 | 'AVEDEV' => [ |
||
317 | 'category' => Category::CATEGORY_STATISTICAL, |
||
318 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::AVEDEV', |
||
319 | 'argumentCount' => '1+', |
||
320 | ], |
||
321 | 'AVERAGE' => [ |
||
322 | 'category' => Category::CATEGORY_STATISTICAL, |
||
323 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::AVERAGE', |
||
324 | 'argumentCount' => '1+', |
||
325 | ], |
||
326 | 'AVERAGEA' => [ |
||
327 | 'category' => Category::CATEGORY_STATISTICAL, |
||
328 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::AVERAGEA', |
||
329 | 'argumentCount' => '1+', |
||
330 | ], |
||
331 | 'AVERAGEIF' => [ |
||
332 | 'category' => Category::CATEGORY_STATISTICAL, |
||
333 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::AVERAGEIF', |
||
334 | 'argumentCount' => '2,3', |
||
335 | ], |
||
336 | 'AVERAGEIFS' => [ |
||
337 | 'category' => Category::CATEGORY_STATISTICAL, |
||
338 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
339 | 'argumentCount' => '3+', |
||
340 | ], |
||
341 | 'BAHTTEXT' => [ |
||
342 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
343 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
344 | 'argumentCount' => '1', |
||
345 | ], |
||
346 | 'BESSELI' => [ |
||
347 | 'category' => Category::CATEGORY_ENGINEERING, |
||
348 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BESSELI', |
||
349 | 'argumentCount' => '2', |
||
350 | ], |
||
351 | 'BESSELJ' => [ |
||
352 | 'category' => Category::CATEGORY_ENGINEERING, |
||
353 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BESSELJ', |
||
354 | 'argumentCount' => '2', |
||
355 | ], |
||
356 | 'BESSELK' => [ |
||
357 | 'category' => Category::CATEGORY_ENGINEERING, |
||
358 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BESSELK', |
||
359 | 'argumentCount' => '2', |
||
360 | ], |
||
361 | 'BESSELY' => [ |
||
362 | 'category' => Category::CATEGORY_ENGINEERING, |
||
363 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BESSELY', |
||
364 | 'argumentCount' => '2', |
||
365 | ], |
||
366 | 'BETADIST' => [ |
||
367 | 'category' => Category::CATEGORY_STATISTICAL, |
||
368 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::BETADIST', |
||
369 | 'argumentCount' => '3-5', |
||
370 | ], |
||
371 | 'BETAINV' => [ |
||
372 | 'category' => Category::CATEGORY_STATISTICAL, |
||
373 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::BETAINV', |
||
374 | 'argumentCount' => '3-5', |
||
375 | ], |
||
376 | 'BIN2DEC' => [ |
||
377 | 'category' => Category::CATEGORY_ENGINEERING, |
||
378 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BINTODEC', |
||
379 | 'argumentCount' => '1', |
||
380 | ], |
||
381 | 'BIN2HEX' => [ |
||
382 | 'category' => Category::CATEGORY_ENGINEERING, |
||
383 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BINTOHEX', |
||
384 | 'argumentCount' => '1,2', |
||
385 | ], |
||
386 | 'BIN2OCT' => [ |
||
387 | 'category' => Category::CATEGORY_ENGINEERING, |
||
388 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::BINTOOCT', |
||
389 | 'argumentCount' => '1,2', |
||
390 | ], |
||
391 | 'BINOMDIST' => [ |
||
392 | 'category' => Category::CATEGORY_STATISTICAL, |
||
393 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::BINOMDIST', |
||
394 | 'argumentCount' => '4', |
||
395 | ], |
||
396 | 'CEILING' => [ |
||
397 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
398 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::CEILING', |
||
399 | 'argumentCount' => '2', |
||
400 | ], |
||
401 | 'CELL' => [ |
||
402 | 'category' => Category::CATEGORY_INFORMATION, |
||
403 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
404 | 'argumentCount' => '1,2', |
||
405 | ], |
||
406 | 'CHAR' => [ |
||
407 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
408 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::CHARACTER', |
||
409 | 'argumentCount' => '1', |
||
410 | ], |
||
411 | 'CHIDIST' => [ |
||
412 | 'category' => Category::CATEGORY_STATISTICAL, |
||
413 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CHIDIST', |
||
414 | 'argumentCount' => '2', |
||
415 | ], |
||
416 | 'CHIINV' => [ |
||
417 | 'category' => Category::CATEGORY_STATISTICAL, |
||
418 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CHIINV', |
||
419 | 'argumentCount' => '2', |
||
420 | ], |
||
421 | 'CHITEST' => [ |
||
422 | 'category' => Category::CATEGORY_STATISTICAL, |
||
423 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
424 | 'argumentCount' => '2', |
||
425 | ], |
||
426 | 'CHOOSE' => [ |
||
427 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
428 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::CHOOSE', |
||
429 | 'argumentCount' => '2+', |
||
430 | ], |
||
431 | 'CLEAN' => [ |
||
432 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
433 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::TRIMNONPRINTABLE', |
||
434 | 'argumentCount' => '1', |
||
435 | ], |
||
436 | 'CODE' => [ |
||
437 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
438 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::ASCIICODE', |
||
439 | 'argumentCount' => '1', |
||
440 | ], |
||
441 | 'COLUMN' => [ |
||
442 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
443 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::COLUMN', |
||
444 | 'argumentCount' => '-1', |
||
445 | 'passByReference' => [true], |
||
446 | ], |
||
447 | 'COLUMNS' => [ |
||
448 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
449 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::COLUMNS', |
||
450 | 'argumentCount' => '1', |
||
451 | ], |
||
452 | 'COMBIN' => [ |
||
453 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
454 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::COMBIN', |
||
455 | 'argumentCount' => '2', |
||
456 | ], |
||
457 | 'COMPLEX' => [ |
||
458 | 'category' => Category::CATEGORY_ENGINEERING, |
||
459 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::COMPLEX', |
||
460 | 'argumentCount' => '2,3', |
||
461 | ], |
||
462 | 'CONCATENATE' => [ |
||
463 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
464 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::CONCATENATE', |
||
465 | 'argumentCount' => '1+', |
||
466 | ], |
||
467 | 'CONFIDENCE' => [ |
||
468 | 'category' => Category::CATEGORY_STATISTICAL, |
||
469 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CONFIDENCE', |
||
470 | 'argumentCount' => '3', |
||
471 | ], |
||
472 | 'CONVERT' => [ |
||
473 | 'category' => Category::CATEGORY_ENGINEERING, |
||
474 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::CONVERTUOM', |
||
475 | 'argumentCount' => '3', |
||
476 | ], |
||
477 | 'CORREL' => [ |
||
478 | 'category' => Category::CATEGORY_STATISTICAL, |
||
479 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CORREL', |
||
480 | 'argumentCount' => '2', |
||
481 | ], |
||
482 | 'COS' => [ |
||
483 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
484 | 'functionCall' => 'cos', |
||
485 | 'argumentCount' => '1', |
||
486 | ], |
||
487 | 'COSH' => [ |
||
488 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
489 | 'functionCall' => 'cosh', |
||
490 | 'argumentCount' => '1', |
||
491 | ], |
||
492 | 'COUNT' => [ |
||
493 | 'category' => Category::CATEGORY_STATISTICAL, |
||
494 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::COUNT', |
||
495 | 'argumentCount' => '1+', |
||
496 | ], |
||
497 | 'COUNTA' => [ |
||
498 | 'category' => Category::CATEGORY_STATISTICAL, |
||
499 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::COUNTA', |
||
500 | 'argumentCount' => '1+', |
||
501 | ], |
||
502 | 'COUNTBLANK' => [ |
||
503 | 'category' => Category::CATEGORY_STATISTICAL, |
||
504 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::COUNTBLANK', |
||
505 | 'argumentCount' => '1', |
||
506 | ], |
||
507 | 'COUNTIF' => [ |
||
508 | 'category' => Category::CATEGORY_STATISTICAL, |
||
509 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::COUNTIF', |
||
510 | 'argumentCount' => '2', |
||
511 | ], |
||
512 | 'COUNTIFS' => [ |
||
513 | 'category' => Category::CATEGORY_STATISTICAL, |
||
514 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
515 | 'argumentCount' => '2', |
||
516 | ], |
||
517 | 'COUPDAYBS' => [ |
||
518 | 'category' => Category::CATEGORY_FINANCIAL, |
||
519 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPDAYBS', |
||
520 | 'argumentCount' => '3,4', |
||
521 | ], |
||
522 | 'COUPDAYS' => [ |
||
523 | 'category' => Category::CATEGORY_FINANCIAL, |
||
524 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPDAYS', |
||
525 | 'argumentCount' => '3,4', |
||
526 | ], |
||
527 | 'COUPDAYSNC' => [ |
||
528 | 'category' => Category::CATEGORY_FINANCIAL, |
||
529 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPDAYSNC', |
||
530 | 'argumentCount' => '3,4', |
||
531 | ], |
||
532 | 'COUPNCD' => [ |
||
533 | 'category' => Category::CATEGORY_FINANCIAL, |
||
534 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPNCD', |
||
535 | 'argumentCount' => '3,4', |
||
536 | ], |
||
537 | 'COUPNUM' => [ |
||
538 | 'category' => Category::CATEGORY_FINANCIAL, |
||
539 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPNUM', |
||
540 | 'argumentCount' => '3,4', |
||
541 | ], |
||
542 | 'COUPPCD' => [ |
||
543 | 'category' => Category::CATEGORY_FINANCIAL, |
||
544 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::COUPPCD', |
||
545 | 'argumentCount' => '3,4', |
||
546 | ], |
||
547 | 'COVAR' => [ |
||
548 | 'category' => Category::CATEGORY_STATISTICAL, |
||
549 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::COVAR', |
||
550 | 'argumentCount' => '2', |
||
551 | ], |
||
552 | 'CRITBINOM' => [ |
||
553 | 'category' => Category::CATEGORY_STATISTICAL, |
||
554 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CRITBINOM', |
||
555 | 'argumentCount' => '3', |
||
556 | ], |
||
557 | 'CUBEKPIMEMBER' => [ |
||
558 | 'category' => Category::CATEGORY_CUBE, |
||
559 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
560 | 'argumentCount' => '?', |
||
561 | ], |
||
562 | 'CUBEMEMBER' => [ |
||
563 | 'category' => Category::CATEGORY_CUBE, |
||
564 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
565 | 'argumentCount' => '?', |
||
566 | ], |
||
567 | 'CUBEMEMBERPROPERTY' => [ |
||
568 | 'category' => Category::CATEGORY_CUBE, |
||
569 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
570 | 'argumentCount' => '?', |
||
571 | ], |
||
572 | 'CUBERANKEDMEMBER' => [ |
||
573 | 'category' => Category::CATEGORY_CUBE, |
||
574 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
575 | 'argumentCount' => '?', |
||
576 | ], |
||
577 | 'CUBESET' => [ |
||
578 | 'category' => Category::CATEGORY_CUBE, |
||
579 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
580 | 'argumentCount' => '?', |
||
581 | ], |
||
582 | 'CUBESETCOUNT' => [ |
||
583 | 'category' => Category::CATEGORY_CUBE, |
||
584 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
585 | 'argumentCount' => '?', |
||
586 | ], |
||
587 | 'CUBEVALUE' => [ |
||
588 | 'category' => Category::CATEGORY_CUBE, |
||
589 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
590 | 'argumentCount' => '?', |
||
591 | ], |
||
592 | 'CUMIPMT' => [ |
||
593 | 'category' => Category::CATEGORY_FINANCIAL, |
||
594 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::CUMIPMT', |
||
595 | 'argumentCount' => '6', |
||
596 | ], |
||
597 | 'CUMPRINC' => [ |
||
598 | 'category' => Category::CATEGORY_FINANCIAL, |
||
599 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::CUMPRINC', |
||
600 | 'argumentCount' => '6', |
||
601 | ], |
||
602 | 'DATE' => [ |
||
603 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
604 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DATE', |
||
605 | 'argumentCount' => '3', |
||
606 | ], |
||
607 | 'DATEDIF' => [ |
||
608 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
609 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DATEDIF', |
||
610 | 'argumentCount' => '2,3', |
||
611 | ], |
||
612 | 'DATEVALUE' => [ |
||
613 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
614 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DATEVALUE', |
||
615 | 'argumentCount' => '1', |
||
616 | ], |
||
617 | 'DAVERAGE' => [ |
||
618 | 'category' => Category::CATEGORY_DATABASE, |
||
619 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DAVERAGE', |
||
620 | 'argumentCount' => '3', |
||
621 | ], |
||
622 | 'DAY' => [ |
||
623 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
624 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DAYOFMONTH', |
||
625 | 'argumentCount' => '1', |
||
626 | ], |
||
627 | 'DAYS360' => [ |
||
628 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
629 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DAYS360', |
||
630 | 'argumentCount' => '2,3', |
||
631 | ], |
||
632 | 'DB' => [ |
||
633 | 'category' => Category::CATEGORY_FINANCIAL, |
||
634 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::DB', |
||
635 | 'argumentCount' => '4,5', |
||
636 | ], |
||
637 | 'DCOUNT' => [ |
||
638 | 'category' => Category::CATEGORY_DATABASE, |
||
639 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DCOUNT', |
||
640 | 'argumentCount' => '3', |
||
641 | ], |
||
642 | 'DCOUNTA' => [ |
||
643 | 'category' => Category::CATEGORY_DATABASE, |
||
644 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DCOUNTA', |
||
645 | 'argumentCount' => '3', |
||
646 | ], |
||
647 | 'DDB' => [ |
||
648 | 'category' => Category::CATEGORY_FINANCIAL, |
||
649 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::DDB', |
||
650 | 'argumentCount' => '4,5', |
||
651 | ], |
||
652 | 'DEC2BIN' => [ |
||
653 | 'category' => Category::CATEGORY_ENGINEERING, |
||
654 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::DECTOBIN', |
||
655 | 'argumentCount' => '1,2', |
||
656 | ], |
||
657 | 'DEC2HEX' => [ |
||
658 | 'category' => Category::CATEGORY_ENGINEERING, |
||
659 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::DECTOHEX', |
||
660 | 'argumentCount' => '1,2', |
||
661 | ], |
||
662 | 'DEC2OCT' => [ |
||
663 | 'category' => Category::CATEGORY_ENGINEERING, |
||
664 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::DECTOOCT', |
||
665 | 'argumentCount' => '1,2', |
||
666 | ], |
||
667 | 'DEGREES' => [ |
||
668 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
669 | 'functionCall' => 'rad2deg', |
||
670 | 'argumentCount' => '1', |
||
671 | ], |
||
672 | 'DELTA' => [ |
||
673 | 'category' => Category::CATEGORY_ENGINEERING, |
||
674 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::DELTA', |
||
675 | 'argumentCount' => '1,2', |
||
676 | ], |
||
677 | 'DEVSQ' => [ |
||
678 | 'category' => Category::CATEGORY_STATISTICAL, |
||
679 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::DEVSQ', |
||
680 | 'argumentCount' => '1+', |
||
681 | ], |
||
682 | 'DGET' => [ |
||
683 | 'category' => Category::CATEGORY_DATABASE, |
||
684 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DGET', |
||
685 | 'argumentCount' => '3', |
||
686 | ], |
||
687 | 'DISC' => [ |
||
688 | 'category' => Category::CATEGORY_FINANCIAL, |
||
689 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::DISC', |
||
690 | 'argumentCount' => '4,5', |
||
691 | ], |
||
692 | 'DMAX' => [ |
||
693 | 'category' => Category::CATEGORY_DATABASE, |
||
694 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DMAX', |
||
695 | 'argumentCount' => '3', |
||
696 | ], |
||
697 | 'DMIN' => [ |
||
698 | 'category' => Category::CATEGORY_DATABASE, |
||
699 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DMIN', |
||
700 | 'argumentCount' => '3', |
||
701 | ], |
||
702 | 'DOLLAR' => [ |
||
703 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
704 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::DOLLAR', |
||
705 | 'argumentCount' => '1,2', |
||
706 | ], |
||
707 | 'DOLLARDE' => [ |
||
708 | 'category' => Category::CATEGORY_FINANCIAL, |
||
709 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::DOLLARDE', |
||
710 | 'argumentCount' => '2', |
||
711 | ], |
||
712 | 'DOLLARFR' => [ |
||
713 | 'category' => Category::CATEGORY_FINANCIAL, |
||
714 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::DOLLARFR', |
||
715 | 'argumentCount' => '2', |
||
716 | ], |
||
717 | 'DPRODUCT' => [ |
||
718 | 'category' => Category::CATEGORY_DATABASE, |
||
719 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DPRODUCT', |
||
720 | 'argumentCount' => '3', |
||
721 | ], |
||
722 | 'DSTDEV' => [ |
||
723 | 'category' => Category::CATEGORY_DATABASE, |
||
724 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DSTDEV', |
||
725 | 'argumentCount' => '3', |
||
726 | ], |
||
727 | 'DSTDEVP' => [ |
||
728 | 'category' => Category::CATEGORY_DATABASE, |
||
729 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DSTDEVP', |
||
730 | 'argumentCount' => '3', |
||
731 | ], |
||
732 | 'DSUM' => [ |
||
733 | 'category' => Category::CATEGORY_DATABASE, |
||
734 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DSUM', |
||
735 | 'argumentCount' => '3', |
||
736 | ], |
||
737 | 'DURATION' => [ |
||
738 | 'category' => Category::CATEGORY_FINANCIAL, |
||
739 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
740 | 'argumentCount' => '5,6', |
||
741 | ], |
||
742 | 'DVAR' => [ |
||
743 | 'category' => Category::CATEGORY_DATABASE, |
||
744 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DVAR', |
||
745 | 'argumentCount' => '3', |
||
746 | ], |
||
747 | 'DVARP' => [ |
||
748 | 'category' => Category::CATEGORY_DATABASE, |
||
749 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Database::DVARP', |
||
750 | 'argumentCount' => '3', |
||
751 | ], |
||
752 | 'EDATE' => [ |
||
753 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
754 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::EDATE', |
||
755 | 'argumentCount' => '2', |
||
756 | ], |
||
757 | 'EFFECT' => [ |
||
758 | 'category' => Category::CATEGORY_FINANCIAL, |
||
759 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::EFFECT', |
||
760 | 'argumentCount' => '2', |
||
761 | ], |
||
762 | 'EOMONTH' => [ |
||
763 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
764 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::EOMONTH', |
||
765 | 'argumentCount' => '2', |
||
766 | ], |
||
767 | 'ERF' => [ |
||
768 | 'category' => Category::CATEGORY_ENGINEERING, |
||
769 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::ERF', |
||
770 | 'argumentCount' => '1,2', |
||
771 | ], |
||
772 | 'ERFC' => [ |
||
773 | 'category' => Category::CATEGORY_ENGINEERING, |
||
774 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::ERFC', |
||
775 | 'argumentCount' => '1', |
||
776 | ], |
||
777 | 'ERROR.TYPE' => [ |
||
778 | 'category' => Category::CATEGORY_INFORMATION, |
||
779 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::errorType', |
||
780 | 'argumentCount' => '1', |
||
781 | ], |
||
782 | 'EVEN' => [ |
||
783 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
784 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::EVEN', |
||
785 | 'argumentCount' => '1', |
||
786 | ], |
||
787 | 'EXACT' => [ |
||
788 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
789 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
790 | 'argumentCount' => '2', |
||
791 | ], |
||
792 | 'EXP' => [ |
||
793 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
794 | 'functionCall' => 'exp', |
||
795 | 'argumentCount' => '1', |
||
796 | ], |
||
797 | 'EXPONDIST' => [ |
||
798 | 'category' => Category::CATEGORY_STATISTICAL, |
||
799 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::EXPONDIST', |
||
800 | 'argumentCount' => '3', |
||
801 | ], |
||
802 | 'FACT' => [ |
||
803 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
804 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::FACT', |
||
805 | 'argumentCount' => '1', |
||
806 | ], |
||
807 | 'FACTDOUBLE' => [ |
||
808 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
809 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::FACTDOUBLE', |
||
810 | 'argumentCount' => '1', |
||
811 | ], |
||
812 | 'FALSE' => [ |
||
813 | 'category' => Category::CATEGORY_LOGICAL, |
||
814 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::FALSE', |
||
815 | 'argumentCount' => '0', |
||
816 | ], |
||
817 | 'FDIST' => [ |
||
818 | 'category' => Category::CATEGORY_STATISTICAL, |
||
819 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
820 | 'argumentCount' => '3', |
||
821 | ], |
||
822 | 'FIND' => [ |
||
823 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
824 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::SEARCHSENSITIVE', |
||
825 | 'argumentCount' => '2,3', |
||
826 | ], |
||
827 | 'FINDB' => [ |
||
828 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
829 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::SEARCHSENSITIVE', |
||
830 | 'argumentCount' => '2,3', |
||
831 | ], |
||
832 | 'FINV' => [ |
||
833 | 'category' => Category::CATEGORY_STATISTICAL, |
||
834 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
835 | 'argumentCount' => '3', |
||
836 | ], |
||
837 | 'FISHER' => [ |
||
838 | 'category' => Category::CATEGORY_STATISTICAL, |
||
839 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::FISHER', |
||
840 | 'argumentCount' => '1', |
||
841 | ], |
||
842 | 'FISHERINV' => [ |
||
843 | 'category' => Category::CATEGORY_STATISTICAL, |
||
844 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::FISHERINV', |
||
845 | 'argumentCount' => '1', |
||
846 | ], |
||
847 | 'FIXED' => [ |
||
848 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
849 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::FIXEDFORMAT', |
||
850 | 'argumentCount' => '1-3', |
||
851 | ], |
||
852 | 'FLOOR' => [ |
||
853 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
854 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::FLOOR', |
||
855 | 'argumentCount' => '2', |
||
856 | ], |
||
857 | 'FORECAST' => [ |
||
858 | 'category' => Category::CATEGORY_STATISTICAL, |
||
859 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::FORECAST', |
||
860 | 'argumentCount' => '3', |
||
861 | ], |
||
862 | 'FREQUENCY' => [ |
||
863 | 'category' => Category::CATEGORY_STATISTICAL, |
||
864 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
865 | 'argumentCount' => '2', |
||
866 | ], |
||
867 | 'FTEST' => [ |
||
868 | 'category' => Category::CATEGORY_STATISTICAL, |
||
869 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
870 | 'argumentCount' => '2', |
||
871 | ], |
||
872 | 'FV' => [ |
||
873 | 'category' => Category::CATEGORY_FINANCIAL, |
||
874 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::FV', |
||
875 | 'argumentCount' => '3-5', |
||
876 | ], |
||
877 | 'FVSCHEDULE' => [ |
||
878 | 'category' => Category::CATEGORY_FINANCIAL, |
||
879 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::FVSCHEDULE', |
||
880 | 'argumentCount' => '2', |
||
881 | ], |
||
882 | 'GAMMADIST' => [ |
||
883 | 'category' => Category::CATEGORY_STATISTICAL, |
||
884 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::GAMMADIST', |
||
885 | 'argumentCount' => '4', |
||
886 | ], |
||
887 | 'GAMMAINV' => [ |
||
888 | 'category' => Category::CATEGORY_STATISTICAL, |
||
889 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::GAMMAINV', |
||
890 | 'argumentCount' => '3', |
||
891 | ], |
||
892 | 'GAMMALN' => [ |
||
893 | 'category' => Category::CATEGORY_STATISTICAL, |
||
894 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::GAMMALN', |
||
895 | 'argumentCount' => '1', |
||
896 | ], |
||
897 | 'GCD' => [ |
||
898 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
899 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::GCD', |
||
900 | 'argumentCount' => '1+', |
||
901 | ], |
||
902 | 'GEOMEAN' => [ |
||
903 | 'category' => Category::CATEGORY_STATISTICAL, |
||
904 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::GEOMEAN', |
||
905 | 'argumentCount' => '1+', |
||
906 | ], |
||
907 | 'GESTEP' => [ |
||
908 | 'category' => Category::CATEGORY_ENGINEERING, |
||
909 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::GESTEP', |
||
910 | 'argumentCount' => '1,2', |
||
911 | ], |
||
912 | 'GETPIVOTDATA' => [ |
||
913 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
914 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
915 | 'argumentCount' => '2+', |
||
916 | ], |
||
917 | 'GROWTH' => [ |
||
918 | 'category' => Category::CATEGORY_STATISTICAL, |
||
919 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::GROWTH', |
||
920 | 'argumentCount' => '1-4', |
||
921 | ], |
||
922 | 'HARMEAN' => [ |
||
923 | 'category' => Category::CATEGORY_STATISTICAL, |
||
924 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::HARMEAN', |
||
925 | 'argumentCount' => '1+', |
||
926 | ], |
||
927 | 'HEX2BIN' => [ |
||
928 | 'category' => Category::CATEGORY_ENGINEERING, |
||
929 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::HEXTOBIN', |
||
930 | 'argumentCount' => '1,2', |
||
931 | ], |
||
932 | 'HEX2DEC' => [ |
||
933 | 'category' => Category::CATEGORY_ENGINEERING, |
||
934 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::HEXTODEC', |
||
935 | 'argumentCount' => '1', |
||
936 | ], |
||
937 | 'HEX2OCT' => [ |
||
938 | 'category' => Category::CATEGORY_ENGINEERING, |
||
939 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::HEXTOOCT', |
||
940 | 'argumentCount' => '1,2', |
||
941 | ], |
||
942 | 'HLOOKUP' => [ |
||
943 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
944 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::HLOOKUP', |
||
945 | 'argumentCount' => '3,4', |
||
946 | ], |
||
947 | 'HOUR' => [ |
||
948 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
949 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::HOUROFDAY', |
||
950 | 'argumentCount' => '1', |
||
951 | ], |
||
952 | 'HYPERLINK' => [ |
||
953 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
954 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::HYPERLINK', |
||
955 | 'argumentCount' => '1,2', |
||
956 | 'passCellReference' => true, |
||
957 | ], |
||
958 | 'HYPGEOMDIST' => [ |
||
959 | 'category' => Category::CATEGORY_STATISTICAL, |
||
960 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::HYPGEOMDIST', |
||
961 | 'argumentCount' => '4', |
||
962 | ], |
||
963 | 'IF' => [ |
||
964 | 'category' => Category::CATEGORY_LOGICAL, |
||
965 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::statementIf', |
||
966 | 'argumentCount' => '1-3', |
||
967 | ], |
||
968 | 'IFERROR' => [ |
||
969 | 'category' => Category::CATEGORY_LOGICAL, |
||
970 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::IFERROR', |
||
971 | 'argumentCount' => '2', |
||
972 | ], |
||
973 | 'IMABS' => [ |
||
974 | 'category' => Category::CATEGORY_ENGINEERING, |
||
975 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMABS', |
||
976 | 'argumentCount' => '1', |
||
977 | ], |
||
978 | 'IMAGINARY' => [ |
||
979 | 'category' => Category::CATEGORY_ENGINEERING, |
||
980 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMAGINARY', |
||
981 | 'argumentCount' => '1', |
||
982 | ], |
||
983 | 'IMARGUMENT' => [ |
||
984 | 'category' => Category::CATEGORY_ENGINEERING, |
||
985 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMARGUMENT', |
||
986 | 'argumentCount' => '1', |
||
987 | ], |
||
988 | 'IMCONJUGATE' => [ |
||
989 | 'category' => Category::CATEGORY_ENGINEERING, |
||
990 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMCONJUGATE', |
||
991 | 'argumentCount' => '1', |
||
992 | ], |
||
993 | 'IMCOS' => [ |
||
994 | 'category' => Category::CATEGORY_ENGINEERING, |
||
995 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMCOS', |
||
996 | 'argumentCount' => '1', |
||
997 | ], |
||
998 | 'IMDIV' => [ |
||
999 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1000 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMDIV', |
||
1001 | 'argumentCount' => '2', |
||
1002 | ], |
||
1003 | 'IMEXP' => [ |
||
1004 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1005 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMEXP', |
||
1006 | 'argumentCount' => '1', |
||
1007 | ], |
||
1008 | 'IMLN' => [ |
||
1009 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1010 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMLN', |
||
1011 | 'argumentCount' => '1', |
||
1012 | ], |
||
1013 | 'IMLOG10' => [ |
||
1014 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1015 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMLOG10', |
||
1016 | 'argumentCount' => '1', |
||
1017 | ], |
||
1018 | 'IMLOG2' => [ |
||
1019 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1020 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMLOG2', |
||
1021 | 'argumentCount' => '1', |
||
1022 | ], |
||
1023 | 'IMPOWER' => [ |
||
1024 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1025 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMPOWER', |
||
1026 | 'argumentCount' => '2', |
||
1027 | ], |
||
1028 | 'IMPRODUCT' => [ |
||
1029 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1030 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMPRODUCT', |
||
1031 | 'argumentCount' => '1+', |
||
1032 | ], |
||
1033 | 'IMREAL' => [ |
||
1034 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1035 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMREAL', |
||
1036 | 'argumentCount' => '1', |
||
1037 | ], |
||
1038 | 'IMSIN' => [ |
||
1039 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1040 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMSIN', |
||
1041 | 'argumentCount' => '1', |
||
1042 | ], |
||
1043 | 'IMSQRT' => [ |
||
1044 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1045 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMSQRT', |
||
1046 | 'argumentCount' => '1', |
||
1047 | ], |
||
1048 | 'IMSUB' => [ |
||
1049 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1050 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMSUB', |
||
1051 | 'argumentCount' => '2', |
||
1052 | ], |
||
1053 | 'IMSUM' => [ |
||
1054 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1055 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::IMSUM', |
||
1056 | 'argumentCount' => '1+', |
||
1057 | ], |
||
1058 | 'INDEX' => [ |
||
1059 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1060 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::INDEX', |
||
1061 | 'argumentCount' => '1-4', |
||
1062 | ], |
||
1063 | 'INDIRECT' => [ |
||
1064 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1065 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::INDIRECT', |
||
1066 | 'argumentCount' => '1,2', |
||
1067 | 'passCellReference' => true, |
||
1068 | ], |
||
1069 | 'INFO' => [ |
||
1070 | 'category' => Category::CATEGORY_INFORMATION, |
||
1071 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1072 | 'argumentCount' => '1', |
||
1073 | ], |
||
1074 | 'INT' => [ |
||
1075 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1076 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::INT', |
||
1077 | 'argumentCount' => '1', |
||
1078 | ], |
||
1079 | 'INTERCEPT' => [ |
||
1080 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1081 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::INTERCEPT', |
||
1082 | 'argumentCount' => '2', |
||
1083 | ], |
||
1084 | 'INTRATE' => [ |
||
1085 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1086 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::INTRATE', |
||
1087 | 'argumentCount' => '4,5', |
||
1088 | ], |
||
1089 | 'IPMT' => [ |
||
1090 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1091 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::IPMT', |
||
1092 | 'argumentCount' => '4-6', |
||
1093 | ], |
||
1094 | 'IRR' => [ |
||
1095 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1096 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::IRR', |
||
1097 | 'argumentCount' => '1,2', |
||
1098 | ], |
||
1099 | 'ISBLANK' => [ |
||
1100 | 'category' => Category::CATEGORY_INFORMATION, |
||
1101 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isBlank', |
||
1102 | 'argumentCount' => '1', |
||
1103 | ], |
||
1104 | 'ISERR' => [ |
||
1105 | 'category' => Category::CATEGORY_INFORMATION, |
||
1106 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isErr', |
||
1107 | 'argumentCount' => '1', |
||
1108 | ], |
||
1109 | 'ISERROR' => [ |
||
1110 | 'category' => Category::CATEGORY_INFORMATION, |
||
1111 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isError', |
||
1112 | 'argumentCount' => '1', |
||
1113 | ], |
||
1114 | 'ISEVEN' => [ |
||
1115 | 'category' => Category::CATEGORY_INFORMATION, |
||
1116 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isEven', |
||
1117 | 'argumentCount' => '1', |
||
1118 | ], |
||
1119 | 'ISLOGICAL' => [ |
||
1120 | 'category' => Category::CATEGORY_INFORMATION, |
||
1121 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isLogical', |
||
1122 | 'argumentCount' => '1', |
||
1123 | ], |
||
1124 | 'ISNA' => [ |
||
1125 | 'category' => Category::CATEGORY_INFORMATION, |
||
1126 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isNa', |
||
1127 | 'argumentCount' => '1', |
||
1128 | ], |
||
1129 | 'ISNONTEXT' => [ |
||
1130 | 'category' => Category::CATEGORY_INFORMATION, |
||
1131 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isNonText', |
||
1132 | 'argumentCount' => '1', |
||
1133 | ], |
||
1134 | 'ISNUMBER' => [ |
||
1135 | 'category' => Category::CATEGORY_INFORMATION, |
||
1136 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isNumber', |
||
1137 | 'argumentCount' => '1', |
||
1138 | ], |
||
1139 | 'ISODD' => [ |
||
1140 | 'category' => Category::CATEGORY_INFORMATION, |
||
1141 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isOdd', |
||
1142 | 'argumentCount' => '1', |
||
1143 | ], |
||
1144 | 'ISPMT' => [ |
||
1145 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1146 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::ISPMT', |
||
1147 | 'argumentCount' => '4', |
||
1148 | ], |
||
1149 | 'ISREF' => [ |
||
1150 | 'category' => Category::CATEGORY_INFORMATION, |
||
1151 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1152 | 'argumentCount' => '1', |
||
1153 | ], |
||
1154 | 'ISTEXT' => [ |
||
1155 | 'category' => Category::CATEGORY_INFORMATION, |
||
1156 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::isText', |
||
1157 | 'argumentCount' => '1', |
||
1158 | ], |
||
1159 | 'JIS' => [ |
||
1160 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1161 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1162 | 'argumentCount' => '1', |
||
1163 | ], |
||
1164 | 'KURT' => [ |
||
1165 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1166 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::KURT', |
||
1167 | 'argumentCount' => '1+', |
||
1168 | ], |
||
1169 | 'LARGE' => [ |
||
1170 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1171 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::LARGE', |
||
1172 | 'argumentCount' => '2', |
||
1173 | ], |
||
1174 | 'LCM' => [ |
||
1175 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1176 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::LCM', |
||
1177 | 'argumentCount' => '1+', |
||
1178 | ], |
||
1179 | 'LEFT' => [ |
||
1180 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1181 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::LEFT', |
||
1182 | 'argumentCount' => '1,2', |
||
1183 | ], |
||
1184 | 'LEFTB' => [ |
||
1185 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1186 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::LEFT', |
||
1187 | 'argumentCount' => '1,2', |
||
1188 | ], |
||
1189 | 'LEN' => [ |
||
1190 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1191 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::STRINGLENGTH', |
||
1192 | 'argumentCount' => '1', |
||
1193 | ], |
||
1194 | 'LENB' => [ |
||
1195 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1196 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::STRINGLENGTH', |
||
1197 | 'argumentCount' => '1', |
||
1198 | ], |
||
1199 | 'LINEST' => [ |
||
1200 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1201 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::LINEST', |
||
1202 | 'argumentCount' => '1-4', |
||
1203 | ], |
||
1204 | 'LN' => [ |
||
1205 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1206 | 'functionCall' => 'log', |
||
1207 | 'argumentCount' => '1', |
||
1208 | ], |
||
1209 | 'LOG' => [ |
||
1210 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1211 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::logBase', |
||
1212 | 'argumentCount' => '1,2', |
||
1213 | ], |
||
1214 | 'LOG10' => [ |
||
1215 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1216 | 'functionCall' => 'log10', |
||
1217 | 'argumentCount' => '1', |
||
1218 | ], |
||
1219 | 'LOGEST' => [ |
||
1220 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1221 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::LOGEST', |
||
1222 | 'argumentCount' => '1-4', |
||
1223 | ], |
||
1224 | 'LOGINV' => [ |
||
1225 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1226 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::LOGINV', |
||
1227 | 'argumentCount' => '3', |
||
1228 | ], |
||
1229 | 'LOGNORMDIST' => [ |
||
1230 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1231 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::LOGNORMDIST', |
||
1232 | 'argumentCount' => '3', |
||
1233 | ], |
||
1234 | 'LOOKUP' => [ |
||
1235 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1236 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::LOOKUP', |
||
1237 | 'argumentCount' => '2,3', |
||
1238 | ], |
||
1239 | 'LOWER' => [ |
||
1240 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1241 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::LOWERCASE', |
||
1242 | 'argumentCount' => '1', |
||
1243 | ], |
||
1244 | 'MATCH' => [ |
||
1245 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1246 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::MATCH', |
||
1247 | 'argumentCount' => '2,3', |
||
1248 | ], |
||
1249 | 'MAX' => [ |
||
1250 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1251 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MAX', |
||
1252 | 'argumentCount' => '1+', |
||
1253 | ], |
||
1254 | 'MAXA' => [ |
||
1255 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1256 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MAXA', |
||
1257 | 'argumentCount' => '1+', |
||
1258 | ], |
||
1259 | 'MAXIF' => [ |
||
1260 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1261 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MAXIF', |
||
1262 | 'argumentCount' => '2+', |
||
1263 | ], |
||
1264 | 'MDETERM' => [ |
||
1265 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1266 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MDETERM', |
||
1267 | 'argumentCount' => '1', |
||
1268 | ], |
||
1269 | 'MDURATION' => [ |
||
1270 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1271 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1272 | 'argumentCount' => '5,6', |
||
1273 | ], |
||
1274 | 'MEDIAN' => [ |
||
1275 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1276 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MEDIAN', |
||
1277 | 'argumentCount' => '1+', |
||
1278 | ], |
||
1279 | 'MEDIANIF' => [ |
||
1280 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1281 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1282 | 'argumentCount' => '2+', |
||
1283 | ], |
||
1284 | 'MID' => [ |
||
1285 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1286 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::MID', |
||
1287 | 'argumentCount' => '3', |
||
1288 | ], |
||
1289 | 'MIDB' => [ |
||
1290 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1291 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::MID', |
||
1292 | 'argumentCount' => '3', |
||
1293 | ], |
||
1294 | 'MIN' => [ |
||
1295 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1296 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MIN', |
||
1297 | 'argumentCount' => '1+', |
||
1298 | ], |
||
1299 | 'MINA' => [ |
||
1300 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1301 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MINA', |
||
1302 | 'argumentCount' => '1+', |
||
1303 | ], |
||
1304 | 'MINIF' => [ |
||
1305 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1306 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MINIF', |
||
1307 | 'argumentCount' => '2+', |
||
1308 | ], |
||
1309 | 'MINUTE' => [ |
||
1310 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1311 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::MINUTE', |
||
1312 | 'argumentCount' => '1', |
||
1313 | ], |
||
1314 | 'MINVERSE' => [ |
||
1315 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1316 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MINVERSE', |
||
1317 | 'argumentCount' => '1', |
||
1318 | ], |
||
1319 | 'MIRR' => [ |
||
1320 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1321 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::MIRR', |
||
1322 | 'argumentCount' => '3', |
||
1323 | ], |
||
1324 | 'MMULT' => [ |
||
1325 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1326 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MMULT', |
||
1327 | 'argumentCount' => '2', |
||
1328 | ], |
||
1329 | 'MOD' => [ |
||
1330 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1331 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MOD', |
||
1332 | 'argumentCount' => '2', |
||
1333 | ], |
||
1334 | 'MODE' => [ |
||
1335 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1336 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::MODE', |
||
1337 | 'argumentCount' => '1+', |
||
1338 | ], |
||
1339 | 'MONTH' => [ |
||
1340 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1341 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::MONTHOFYEAR', |
||
1342 | 'argumentCount' => '1', |
||
1343 | ], |
||
1344 | 'MROUND' => [ |
||
1345 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1346 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MROUND', |
||
1347 | 'argumentCount' => '2', |
||
1348 | ], |
||
1349 | 'MULTINOMIAL' => [ |
||
1350 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1351 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::MULTINOMIAL', |
||
1352 | 'argumentCount' => '1+', |
||
1353 | ], |
||
1354 | 'N' => [ |
||
1355 | 'category' => Category::CATEGORY_INFORMATION, |
||
1356 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::n', |
||
1357 | 'argumentCount' => '1', |
||
1358 | ], |
||
1359 | 'NA' => [ |
||
1360 | 'category' => Category::CATEGORY_INFORMATION, |
||
1361 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::NA', |
||
1362 | 'argumentCount' => '0', |
||
1363 | ], |
||
1364 | 'NEGBINOMDIST' => [ |
||
1365 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1366 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::NEGBINOMDIST', |
||
1367 | 'argumentCount' => '3', |
||
1368 | ], |
||
1369 | 'NETWORKDAYS' => [ |
||
1370 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1371 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::NETWORKDAYS', |
||
1372 | 'argumentCount' => '2+', |
||
1373 | ], |
||
1374 | 'NOMINAL' => [ |
||
1375 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1376 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::NOMINAL', |
||
1377 | 'argumentCount' => '2', |
||
1378 | ], |
||
1379 | 'NORMDIST' => [ |
||
1380 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1381 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::NORMDIST', |
||
1382 | 'argumentCount' => '4', |
||
1383 | ], |
||
1384 | 'NORMINV' => [ |
||
1385 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1386 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::NORMINV', |
||
1387 | 'argumentCount' => '3', |
||
1388 | ], |
||
1389 | 'NORMSDIST' => [ |
||
1390 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1391 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::NORMSDIST', |
||
1392 | 'argumentCount' => '1', |
||
1393 | ], |
||
1394 | 'NORMSINV' => [ |
||
1395 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1396 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::NORMSINV', |
||
1397 | 'argumentCount' => '1', |
||
1398 | ], |
||
1399 | 'NOT' => [ |
||
1400 | 'category' => Category::CATEGORY_LOGICAL, |
||
1401 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::NOT', |
||
1402 | 'argumentCount' => '1', |
||
1403 | ], |
||
1404 | 'NOW' => [ |
||
1405 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1406 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DATETIMENOW', |
||
1407 | 'argumentCount' => '0', |
||
1408 | ], |
||
1409 | 'NPER' => [ |
||
1410 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1411 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::NPER', |
||
1412 | 'argumentCount' => '3-5', |
||
1413 | ], |
||
1414 | 'NPV' => [ |
||
1415 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1416 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::NPV', |
||
1417 | 'argumentCount' => '2+', |
||
1418 | ], |
||
1419 | 'OCT2BIN' => [ |
||
1420 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1421 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::OCTTOBIN', |
||
1422 | 'argumentCount' => '1,2', |
||
1423 | ], |
||
1424 | 'OCT2DEC' => [ |
||
1425 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1426 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::OCTTODEC', |
||
1427 | 'argumentCount' => '1', |
||
1428 | ], |
||
1429 | 'OCT2HEX' => [ |
||
1430 | 'category' => Category::CATEGORY_ENGINEERING, |
||
1431 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering::OCTTOHEX', |
||
1432 | 'argumentCount' => '1,2', |
||
1433 | ], |
||
1434 | 'ODD' => [ |
||
1435 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1436 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::ODD', |
||
1437 | 'argumentCount' => '1', |
||
1438 | ], |
||
1439 | 'ODDFPRICE' => [ |
||
1440 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1441 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1442 | 'argumentCount' => '8,9', |
||
1443 | ], |
||
1444 | 'ODDFYIELD' => [ |
||
1445 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1446 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1447 | 'argumentCount' => '8,9', |
||
1448 | ], |
||
1449 | 'ODDLPRICE' => [ |
||
1450 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1451 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1452 | 'argumentCount' => '7,8', |
||
1453 | ], |
||
1454 | 'ODDLYIELD' => [ |
||
1455 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1456 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1457 | 'argumentCount' => '7,8', |
||
1458 | ], |
||
1459 | 'OFFSET' => [ |
||
1460 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1461 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::OFFSET', |
||
1462 | 'argumentCount' => '3-5', |
||
1463 | 'passCellReference' => true, |
||
1464 | 'passByReference' => [true], |
||
1465 | ], |
||
1466 | 'OR' => [ |
||
1467 | 'category' => Category::CATEGORY_LOGICAL, |
||
1468 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::logicalOr', |
||
1469 | 'argumentCount' => '1+', |
||
1470 | ], |
||
1471 | 'PEARSON' => [ |
||
1472 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1473 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::CORREL', |
||
1474 | 'argumentCount' => '2', |
||
1475 | ], |
||
1476 | 'PERCENTILE' => [ |
||
1477 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1478 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::PERCENTILE', |
||
1479 | 'argumentCount' => '2', |
||
1480 | ], |
||
1481 | 'PERCENTRANK' => [ |
||
1482 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1483 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::PERCENTRANK', |
||
1484 | 'argumentCount' => '2,3', |
||
1485 | ], |
||
1486 | 'PERMUT' => [ |
||
1487 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1488 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::PERMUT', |
||
1489 | 'argumentCount' => '2', |
||
1490 | ], |
||
1491 | 'PHONETIC' => [ |
||
1492 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1493 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1494 | 'argumentCount' => '1', |
||
1495 | ], |
||
1496 | 'PI' => [ |
||
1497 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1498 | 'functionCall' => 'pi', |
||
1499 | 'argumentCount' => '0', |
||
1500 | ], |
||
1501 | 'PMT' => [ |
||
1502 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1503 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PMT', |
||
1504 | 'argumentCount' => '3-5', |
||
1505 | ], |
||
1506 | 'POISSON' => [ |
||
1507 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1508 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::POISSON', |
||
1509 | 'argumentCount' => '3', |
||
1510 | ], |
||
1511 | 'POWER' => [ |
||
1512 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1513 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::POWER', |
||
1514 | 'argumentCount' => '2', |
||
1515 | ], |
||
1516 | 'PPMT' => [ |
||
1517 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1518 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PPMT', |
||
1519 | 'argumentCount' => '4-6', |
||
1520 | ], |
||
1521 | 'PRICE' => [ |
||
1522 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1523 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PRICE', |
||
1524 | 'argumentCount' => '6,7', |
||
1525 | ], |
||
1526 | 'PRICEDISC' => [ |
||
1527 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1528 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PRICEDISC', |
||
1529 | 'argumentCount' => '4,5', |
||
1530 | ], |
||
1531 | 'PRICEMAT' => [ |
||
1532 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1533 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PRICEMAT', |
||
1534 | 'argumentCount' => '5,6', |
||
1535 | ], |
||
1536 | 'PROB' => [ |
||
1537 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1538 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1539 | 'argumentCount' => '3,4', |
||
1540 | ], |
||
1541 | 'PRODUCT' => [ |
||
1542 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1543 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::PRODUCT', |
||
1544 | 'argumentCount' => '1+', |
||
1545 | ], |
||
1546 | 'PROPER' => [ |
||
1547 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1548 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::PROPERCASE', |
||
1549 | 'argumentCount' => '1', |
||
1550 | ], |
||
1551 | 'PV' => [ |
||
1552 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1553 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::PV', |
||
1554 | 'argumentCount' => '3-5', |
||
1555 | ], |
||
1556 | 'QUARTILE' => [ |
||
1557 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1558 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::QUARTILE', |
||
1559 | 'argumentCount' => '2', |
||
1560 | ], |
||
1561 | 'QUOTIENT' => [ |
||
1562 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1563 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::QUOTIENT', |
||
1564 | 'argumentCount' => '2', |
||
1565 | ], |
||
1566 | 'RADIANS' => [ |
||
1567 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1568 | 'functionCall' => 'deg2rad', |
||
1569 | 'argumentCount' => '1', |
||
1570 | ], |
||
1571 | 'RAND' => [ |
||
1572 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1573 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::RAND', |
||
1574 | 'argumentCount' => '0', |
||
1575 | ], |
||
1576 | 'RANDBETWEEN' => [ |
||
1577 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1578 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::RAND', |
||
1579 | 'argumentCount' => '2', |
||
1580 | ], |
||
1581 | 'RANK' => [ |
||
1582 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1583 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::RANK', |
||
1584 | 'argumentCount' => '2,3', |
||
1585 | ], |
||
1586 | 'RATE' => [ |
||
1587 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1588 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::RATE', |
||
1589 | 'argumentCount' => '3-6', |
||
1590 | ], |
||
1591 | 'RECEIVED' => [ |
||
1592 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1593 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::RECEIVED', |
||
1594 | 'argumentCount' => '4-5', |
||
1595 | ], |
||
1596 | 'REPLACE' => [ |
||
1597 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1598 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::REPLACE', |
||
1599 | 'argumentCount' => '4', |
||
1600 | ], |
||
1601 | 'REPLACEB' => [ |
||
1602 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1603 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::REPLACE', |
||
1604 | 'argumentCount' => '4', |
||
1605 | ], |
||
1606 | 'REPT' => [ |
||
1607 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1608 | 'functionCall' => 'str_repeat', |
||
1609 | 'argumentCount' => '2', |
||
1610 | ], |
||
1611 | 'RIGHT' => [ |
||
1612 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1613 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::RIGHT', |
||
1614 | 'argumentCount' => '1,2', |
||
1615 | ], |
||
1616 | 'RIGHTB' => [ |
||
1617 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1618 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::RIGHT', |
||
1619 | 'argumentCount' => '1,2', |
||
1620 | ], |
||
1621 | 'ROMAN' => [ |
||
1622 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1623 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::ROMAN', |
||
1624 | 'argumentCount' => '1,2', |
||
1625 | ], |
||
1626 | 'ROUND' => [ |
||
1627 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1628 | 'functionCall' => 'round', |
||
1629 | 'argumentCount' => '2', |
||
1630 | ], |
||
1631 | 'ROUNDDOWN' => [ |
||
1632 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1633 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::ROUNDDOWN', |
||
1634 | 'argumentCount' => '2', |
||
1635 | ], |
||
1636 | 'ROUNDUP' => [ |
||
1637 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1638 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::ROUNDUP', |
||
1639 | 'argumentCount' => '2', |
||
1640 | ], |
||
1641 | 'ROW' => [ |
||
1642 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1643 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::ROW', |
||
1644 | 'argumentCount' => '-1', |
||
1645 | 'passByReference' => [true], |
||
1646 | ], |
||
1647 | 'ROWS' => [ |
||
1648 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1649 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::ROWS', |
||
1650 | 'argumentCount' => '1', |
||
1651 | ], |
||
1652 | 'RSQ' => [ |
||
1653 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1654 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::RSQ', |
||
1655 | 'argumentCount' => '2', |
||
1656 | ], |
||
1657 | 'RTD' => [ |
||
1658 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1659 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1660 | 'argumentCount' => '1+', |
||
1661 | ], |
||
1662 | 'SEARCH' => [ |
||
1663 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1664 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::SEARCHINSENSITIVE', |
||
1665 | 'argumentCount' => '2,3', |
||
1666 | ], |
||
1667 | 'SEARCHB' => [ |
||
1668 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1669 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::SEARCHINSENSITIVE', |
||
1670 | 'argumentCount' => '2,3', |
||
1671 | ], |
||
1672 | 'SECOND' => [ |
||
1673 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1674 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::SECOND', |
||
1675 | 'argumentCount' => '1', |
||
1676 | ], |
||
1677 | 'SERIESSUM' => [ |
||
1678 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1679 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SERIESSUM', |
||
1680 | 'argumentCount' => '4', |
||
1681 | ], |
||
1682 | 'SIGN' => [ |
||
1683 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1684 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SIGN', |
||
1685 | 'argumentCount' => '1', |
||
1686 | ], |
||
1687 | 'SIN' => [ |
||
1688 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1689 | 'functionCall' => 'sin', |
||
1690 | 'argumentCount' => '1', |
||
1691 | ], |
||
1692 | 'SINH' => [ |
||
1693 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1694 | 'functionCall' => 'sinh', |
||
1695 | 'argumentCount' => '1', |
||
1696 | ], |
||
1697 | 'SKEW' => [ |
||
1698 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1699 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::SKEW', |
||
1700 | 'argumentCount' => '1+', |
||
1701 | ], |
||
1702 | 'SLN' => [ |
||
1703 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1704 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::SLN', |
||
1705 | 'argumentCount' => '3', |
||
1706 | ], |
||
1707 | 'SLOPE' => [ |
||
1708 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1709 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::SLOPE', |
||
1710 | 'argumentCount' => '2', |
||
1711 | ], |
||
1712 | 'SMALL' => [ |
||
1713 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1714 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::SMALL', |
||
1715 | 'argumentCount' => '2', |
||
1716 | ], |
||
1717 | 'SQRT' => [ |
||
1718 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1719 | 'functionCall' => 'sqrt', |
||
1720 | 'argumentCount' => '1', |
||
1721 | ], |
||
1722 | 'SQRTPI' => [ |
||
1723 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1724 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SQRTPI', |
||
1725 | 'argumentCount' => '1', |
||
1726 | ], |
||
1727 | 'STANDARDIZE' => [ |
||
1728 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1729 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STANDARDIZE', |
||
1730 | 'argumentCount' => '3', |
||
1731 | ], |
||
1732 | 'STDEV' => [ |
||
1733 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1734 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STDEV', |
||
1735 | 'argumentCount' => '1+', |
||
1736 | ], |
||
1737 | 'STDEVA' => [ |
||
1738 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1739 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STDEVA', |
||
1740 | 'argumentCount' => '1+', |
||
1741 | ], |
||
1742 | 'STDEVP' => [ |
||
1743 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1744 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STDEVP', |
||
1745 | 'argumentCount' => '1+', |
||
1746 | ], |
||
1747 | 'STDEVPA' => [ |
||
1748 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1749 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STDEVPA', |
||
1750 | 'argumentCount' => '1+', |
||
1751 | ], |
||
1752 | 'STEYX' => [ |
||
1753 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1754 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::STEYX', |
||
1755 | 'argumentCount' => '2', |
||
1756 | ], |
||
1757 | 'SUBSTITUTE' => [ |
||
1758 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1759 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::SUBSTITUTE', |
||
1760 | 'argumentCount' => '3,4', |
||
1761 | ], |
||
1762 | 'SUBTOTAL' => [ |
||
1763 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1764 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUBTOTAL', |
||
1765 | 'argumentCount' => '2+', |
||
1766 | ], |
||
1767 | 'SUM' => [ |
||
1768 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1769 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUM', |
||
1770 | 'argumentCount' => '1+', |
||
1771 | ], |
||
1772 | 'SUMIF' => [ |
||
1773 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1774 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMIF', |
||
1775 | 'argumentCount' => '2,3', |
||
1776 | ], |
||
1777 | 'SUMIFS' => [ |
||
1778 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1779 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMIFS', |
||
1780 | 'argumentCount' => '3+', |
||
1781 | ], |
||
1782 | 'SUMPRODUCT' => [ |
||
1783 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1784 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMPRODUCT', |
||
1785 | 'argumentCount' => '1+', |
||
1786 | ], |
||
1787 | 'SUMSQ' => [ |
||
1788 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1789 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMSQ', |
||
1790 | 'argumentCount' => '1+', |
||
1791 | ], |
||
1792 | 'SUMX2MY2' => [ |
||
1793 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1794 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMX2MY2', |
||
1795 | 'argumentCount' => '2', |
||
1796 | ], |
||
1797 | 'SUMX2PY2' => [ |
||
1798 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1799 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMX2PY2', |
||
1800 | 'argumentCount' => '2', |
||
1801 | ], |
||
1802 | 'SUMXMY2' => [ |
||
1803 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1804 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::SUMXMY2', |
||
1805 | 'argumentCount' => '2', |
||
1806 | ], |
||
1807 | 'SYD' => [ |
||
1808 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1809 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::SYD', |
||
1810 | 'argumentCount' => '4', |
||
1811 | ], |
||
1812 | 'T' => [ |
||
1813 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1814 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::RETURNSTRING', |
||
1815 | 'argumentCount' => '1', |
||
1816 | ], |
||
1817 | 'TAN' => [ |
||
1818 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1819 | 'functionCall' => 'tan', |
||
1820 | 'argumentCount' => '1', |
||
1821 | ], |
||
1822 | 'TANH' => [ |
||
1823 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1824 | 'functionCall' => 'tanh', |
||
1825 | 'argumentCount' => '1', |
||
1826 | ], |
||
1827 | 'TBILLEQ' => [ |
||
1828 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1829 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::TBILLEQ', |
||
1830 | 'argumentCount' => '3', |
||
1831 | ], |
||
1832 | 'TBILLPRICE' => [ |
||
1833 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1834 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::TBILLPRICE', |
||
1835 | 'argumentCount' => '3', |
||
1836 | ], |
||
1837 | 'TBILLYIELD' => [ |
||
1838 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1839 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::TBILLYIELD', |
||
1840 | 'argumentCount' => '3', |
||
1841 | ], |
||
1842 | 'TDIST' => [ |
||
1843 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1844 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::TDIST', |
||
1845 | 'argumentCount' => '3', |
||
1846 | ], |
||
1847 | 'TEXT' => [ |
||
1848 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1849 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::TEXTFORMAT', |
||
1850 | 'argumentCount' => '2', |
||
1851 | ], |
||
1852 | 'TIME' => [ |
||
1853 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1854 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::TIME', |
||
1855 | 'argumentCount' => '3', |
||
1856 | ], |
||
1857 | 'TIMEVALUE' => [ |
||
1858 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1859 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::TIMEVALUE', |
||
1860 | 'argumentCount' => '1', |
||
1861 | ], |
||
1862 | 'TINV' => [ |
||
1863 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1864 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::TINV', |
||
1865 | 'argumentCount' => '2', |
||
1866 | ], |
||
1867 | 'TODAY' => [ |
||
1868 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1869 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::DATENOW', |
||
1870 | 'argumentCount' => '0', |
||
1871 | ], |
||
1872 | 'TRANSPOSE' => [ |
||
1873 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1874 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::TRANSPOSE', |
||
1875 | 'argumentCount' => '1', |
||
1876 | ], |
||
1877 | 'TREND' => [ |
||
1878 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1879 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::TREND', |
||
1880 | 'argumentCount' => '1-4', |
||
1881 | ], |
||
1882 | 'TRIM' => [ |
||
1883 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1884 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::TRIMSPACES', |
||
1885 | 'argumentCount' => '1', |
||
1886 | ], |
||
1887 | 'TRIMMEAN' => [ |
||
1888 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1889 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::TRIMMEAN', |
||
1890 | 'argumentCount' => '2', |
||
1891 | ], |
||
1892 | 'TRUE' => [ |
||
1893 | 'category' => Category::CATEGORY_LOGICAL, |
||
1894 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Logical::TRUE', |
||
1895 | 'argumentCount' => '0', |
||
1896 | ], |
||
1897 | 'TRUNC' => [ |
||
1898 | 'category' => Category::CATEGORY_MATH_AND_TRIG, |
||
1899 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig::TRUNC', |
||
1900 | 'argumentCount' => '1,2', |
||
1901 | ], |
||
1902 | 'TTEST' => [ |
||
1903 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1904 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1905 | 'argumentCount' => '4', |
||
1906 | ], |
||
1907 | 'TYPE' => [ |
||
1908 | 'category' => Category::CATEGORY_INFORMATION, |
||
1909 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::TYPE', |
||
1910 | 'argumentCount' => '1', |
||
1911 | ], |
||
1912 | 'UPPER' => [ |
||
1913 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1914 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::UPPERCASE', |
||
1915 | 'argumentCount' => '1', |
||
1916 | ], |
||
1917 | 'USDOLLAR' => [ |
||
1918 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1919 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1920 | 'argumentCount' => '2', |
||
1921 | ], |
||
1922 | 'VALUE' => [ |
||
1923 | 'category' => Category::CATEGORY_TEXT_AND_DATA, |
||
1924 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\TextData::VALUE', |
||
1925 | 'argumentCount' => '1', |
||
1926 | ], |
||
1927 | 'VAR' => [ |
||
1928 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1929 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::VARFunc', |
||
1930 | 'argumentCount' => '1+', |
||
1931 | ], |
||
1932 | 'VARA' => [ |
||
1933 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1934 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::VARA', |
||
1935 | 'argumentCount' => '1+', |
||
1936 | ], |
||
1937 | 'VARP' => [ |
||
1938 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1939 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::VARP', |
||
1940 | 'argumentCount' => '1+', |
||
1941 | ], |
||
1942 | 'VARPA' => [ |
||
1943 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1944 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::VARPA', |
||
1945 | 'argumentCount' => '1+', |
||
1946 | ], |
||
1947 | 'VDB' => [ |
||
1948 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1949 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
1950 | 'argumentCount' => '5-7', |
||
1951 | ], |
||
1952 | 'VLOOKUP' => [ |
||
1953 | 'category' => Category::CATEGORY_LOOKUP_AND_REFERENCE, |
||
1954 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef::VLOOKUP', |
||
1955 | 'argumentCount' => '3,4', |
||
1956 | ], |
||
1957 | 'WEEKDAY' => [ |
||
1958 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1959 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::WEEKDAY', |
||
1960 | 'argumentCount' => '1,2', |
||
1961 | ], |
||
1962 | 'WEEKNUM' => [ |
||
1963 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1964 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::WEEKNUM', |
||
1965 | 'argumentCount' => '1,2', |
||
1966 | ], |
||
1967 | 'WEIBULL' => [ |
||
1968 | 'category' => Category::CATEGORY_STATISTICAL, |
||
1969 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::WEIBULL', |
||
1970 | 'argumentCount' => '4', |
||
1971 | ], |
||
1972 | 'WORKDAY' => [ |
||
1973 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1974 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::WORKDAY', |
||
1975 | 'argumentCount' => '2+', |
||
1976 | ], |
||
1977 | 'XIRR' => [ |
||
1978 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1979 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::XIRR', |
||
1980 | 'argumentCount' => '2,3', |
||
1981 | ], |
||
1982 | 'XNPV' => [ |
||
1983 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1984 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::XNPV', |
||
1985 | 'argumentCount' => '3', |
||
1986 | ], |
||
1987 | 'YEAR' => [ |
||
1988 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1989 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::YEAR', |
||
1990 | 'argumentCount' => '1', |
||
1991 | ], |
||
1992 | 'YEARFRAC' => [ |
||
1993 | 'category' => Category::CATEGORY_DATE_AND_TIME, |
||
1994 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime::YEARFRAC', |
||
1995 | 'argumentCount' => '2,3', |
||
1996 | ], |
||
1997 | 'YIELD' => [ |
||
1998 | 'category' => Category::CATEGORY_FINANCIAL, |
||
1999 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Functions::DUMMY', |
||
2000 | 'argumentCount' => '6,7', |
||
2001 | ], |
||
2002 | 'YIELDDISC' => [ |
||
2003 | 'category' => Category::CATEGORY_FINANCIAL, |
||
2004 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::YIELDDISC', |
||
2005 | 'argumentCount' => '4,5', |
||
2006 | ], |
||
2007 | 'YIELDMAT' => [ |
||
2008 | 'category' => Category::CATEGORY_FINANCIAL, |
||
2009 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Financial::YIELDMAT', |
||
2010 | 'argumentCount' => '5,6', |
||
2011 | ], |
||
2012 | 'ZTEST' => [ |
||
2013 | 'category' => Category::CATEGORY_STATISTICAL, |
||
2014 | 'functionCall' => '\\PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical::ZTEST', |
||
2015 | 'argumentCount' => '2-3', |
||
2016 | ], |
||
2017 | ]; |
||
2018 | |||
2019 | // Internal functions used for special control purposes |
||
2020 | private static $controlFunctions = [ |
||
2021 | 'MKMATRIX' => [ |
||
2022 | 'argumentCount' => '*', |
||
2023 | 'functionCall' => 'self::mkMatrix', |
||
2024 | ], |
||
2025 | ]; |
||
2026 | |||
2027 | 62 | public function __construct(Spreadsheet $spreadsheet = null) |
|
2035 | |||
2036 | private static function loadLocales() |
||
2046 | |||
2047 | /** |
||
2048 | * Get an instance of this class |
||
2049 | * |
||
2050 | * @param Spreadsheet $spreadsheet Injected spreadsheet for working with a PhpSpreadsheet Spreadsheet object, |
||
2051 | * or NULL to create a standalone claculation engine |
||
2052 | * @return Calculation |
||
2053 | */ |
||
2054 | 117 | public static function getInstance(Spreadsheet $spreadsheet = null) |
|
2069 | |||
2070 | /** |
||
2071 | * Unset an instance of this class |
||
2072 | * |
||
2073 | * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset |
||
2074 | */ |
||
2075 | 1 | public function __destruct() |
|
2079 | |||
2080 | /** |
||
2081 | * Flush the calculation cache for any existing instance of this class |
||
2082 | * but only if a \PhpOffice\PhpSpreadsheet\Calculation instance exists |
||
2083 | */ |
||
2084 | public function flushInstance() |
||
2088 | |||
2089 | /** |
||
2090 | * Get the debuglog for this claculation engine instance |
||
2091 | * |
||
2092 | * @return CalcEngine\Logger |
||
2093 | */ |
||
2094 | 59 | public function getDebugLog() |
|
2098 | |||
2099 | /** |
||
2100 | * __clone implementation. Cloning should not be allowed in a Singleton! |
||
2101 | * |
||
2102 | * @throws Calculation\Exception |
||
2103 | */ |
||
2104 | final public function __clone() |
||
2108 | |||
2109 | /** |
||
2110 | * Return the locale-specific translation of TRUE |
||
2111 | * |
||
2112 | * @return string locale-specific translation of TRUE |
||
2113 | */ |
||
2114 | 36 | public static function getTRUE() |
|
2118 | |||
2119 | /** |
||
2120 | * Return the locale-specific translation of FALSE |
||
2121 | * |
||
2122 | * @return string locale-specific translation of FALSE |
||
2123 | */ |
||
2124 | 29 | public static function getFALSE() |
|
2128 | |||
2129 | /** |
||
2130 | * Set the Array Return Type (Array or Value of first element in the array) |
||
2131 | * |
||
2132 | * @param string $returnType Array return type |
||
2133 | * @return bool Success or failure |
||
2134 | */ |
||
2135 | 15 | public static function setArrayReturnType($returnType) |
|
2147 | |||
2148 | /** |
||
2149 | * Return the Array Return Type (Array or Value of first element in the array) |
||
2150 | * |
||
2151 | * @return string $returnType Array return type |
||
2152 | */ |
||
2153 | 4 | public static function getArrayReturnType() |
|
2157 | |||
2158 | /** |
||
2159 | * Is calculation caching enabled? |
||
2160 | * |
||
2161 | * @return bool |
||
2162 | */ |
||
2163 | public function getCalculationCacheEnabled() |
||
2167 | |||
2168 | /** |
||
2169 | * Enable/disable calculation cache |
||
2170 | * |
||
2171 | * @param bool $pValue |
||
2172 | */ |
||
2173 | public function setCalculationCacheEnabled($pValue = true) |
||
2178 | |||
2179 | /** |
||
2180 | * Enable calculation cache |
||
2181 | */ |
||
2182 | public function enableCalculationCache() |
||
2186 | |||
2187 | /** |
||
2188 | * Disable calculation cache |
||
2189 | */ |
||
2190 | public function disableCalculationCache() |
||
2194 | |||
2195 | /** |
||
2196 | * Clear calculation cache |
||
2197 | */ |
||
2198 | public function clearCalculationCache() |
||
2202 | |||
2203 | /** |
||
2204 | * Clear calculation cache for a specified worksheet |
||
2205 | * |
||
2206 | * @param string $worksheetName |
||
2207 | */ |
||
2208 | 1 | public function clearCalculationCacheForWorksheet($worksheetName) |
|
2214 | |||
2215 | /** |
||
2216 | * Rename calculation cache for a specified worksheet |
||
2217 | * |
||
2218 | * @param string $fromWorksheetName |
||
2219 | * @param string $toWorksheetName |
||
2220 | */ |
||
2221 | 62 | public function renameCalculationCacheForWorksheet($fromWorksheetName, $toWorksheetName) |
|
2228 | |||
2229 | /** |
||
2230 | * Get the currently defined locale code |
||
2231 | * |
||
2232 | * @return string |
||
2233 | */ |
||
2234 | public function getLocale() |
||
2238 | |||
2239 | /** |
||
2240 | * Set the locale code |
||
2241 | * |
||
2242 | * @param string $locale The locale to use for formula translation |
||
2243 | * @return bool |
||
2244 | */ |
||
2245 | public function setLocale($locale = 'en_us') |
||
2324 | |||
2325 | 1 | public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces) |
|
2346 | |||
2347 | /** |
||
2348 | * @param string $fromSeparator |
||
2349 | * @param string $toSeparator |
||
2350 | */ |
||
2351 | private static function translateFormula($from, $to, $formula, $fromSeparator, $toSeparator) |
||
2381 | |||
2382 | private static $functionReplaceFromExcel = null; |
||
2383 | private static $functionReplaceToLocale = null; |
||
2384 | |||
2385 | View Code Duplication | public function _translateFormulaToLocale($formula) |
|
2409 | |||
2410 | private static $functionReplaceFromLocale = null; |
||
2411 | private static $functionReplaceToExcel = null; |
||
2412 | |||
2413 | View Code Duplication | public function _translateFormulaToEnglish($formula) |
|
2437 | |||
2438 | 21 | public static function localeFunc($function) |
|
2453 | |||
2454 | /** |
||
2455 | * Wrap string values in quotes |
||
2456 | * |
||
2457 | * @param mixed $value |
||
2458 | * @return mixed |
||
2459 | */ |
||
2460 | 55 | public static function wrapResult($value) |
|
2477 | |||
2478 | /** |
||
2479 | * Remove quotes used as a wrapper to identify string values |
||
2480 | * |
||
2481 | * @param mixed $value |
||
2482 | * @return mixed |
||
2483 | */ |
||
2484 | 67 | public static function unwrapResult($value) |
|
2497 | |||
2498 | /** |
||
2499 | * Calculate cell value (using formula from a cell ID) |
||
2500 | * Retained for backward compatibility |
||
2501 | * |
||
2502 | * @param Cell $pCell Cell to calculate |
||
2503 | * @throws Calculation\Exception |
||
2504 | * @return mixed |
||
2505 | */ |
||
2506 | public function calculate(Cell $pCell = null) |
||
2514 | |||
2515 | /** |
||
2516 | * Calculate the value of a cell formula |
||
2517 | * |
||
2518 | * @param Cell $pCell Cell to calculate |
||
2519 | * @param bool $resetLog Flag indicating whether the debug log should be reset or not |
||
2520 | * @throws Calculation\Exception |
||
2521 | * @return mixed |
||
2522 | */ |
||
2523 | 22 | public function calculateCellValue(Cell $pCell = null, $resetLog = true) |
|
2589 | |||
2590 | /** |
||
2591 | * Validate and parse a formula string |
||
2592 | * |
||
2593 | * @param string $formula Formula to parse |
||
2594 | * @throws Calculation\Exception |
||
2595 | * @return array |
||
2596 | */ |
||
2597 | public function parseFormula($formula) |
||
2613 | |||
2614 | /** |
||
2615 | * Calculate the value of a formula |
||
2616 | * |
||
2617 | * @param string $formula Formula to parse |
||
2618 | * @param string $cellID Address of the cell to calculate |
||
2619 | * @param Cell $pCell Cell to calculate |
||
2620 | * @throws Calculation\Exception |
||
2621 | * @return mixed |
||
2622 | */ |
||
2623 | public function calculateFormula($formula, $cellID = null, Cell $pCell = null) |
||
2654 | |||
2655 | 22 | public function getValueFromCache($cellReference, &$cellValue) |
|
2670 | |||
2671 | /** |
||
2672 | * @param string $cellReference |
||
2673 | */ |
||
2674 | 22 | public function saveValueToCache($cellReference, $cellValue) |
|
2680 | |||
2681 | /** |
||
2682 | * Parse a cell formula and calculate its value |
||
2683 | * |
||
2684 | * @param string $formula The formula to parse and calculate |
||
2685 | * @param string $cellID The ID (e.g. A3) of the cell that we are calculating |
||
2686 | * @param Cell $pCell Cell to calculate |
||
2687 | * @throws Calculation\Exception |
||
2688 | * @return mixed |
||
2689 | */ |
||
2690 | 91 | public function _calculateFormulaValue($formula, $cellID = null, Cell $pCell = null) |
|
2746 | |||
2747 | /** |
||
2748 | * Ensure that paired matrix operands are both matrices and of the same size |
||
2749 | * |
||
2750 | * @param mixed &$operand1 First matrix operand |
||
2751 | * @param mixed &$operand2 Second matrix operand |
||
2752 | * @param int $resize Flag indicating whether the matrices should be resized to match |
||
2753 | * and (if so), whether the smaller dimension should grow or the |
||
2754 | * larger should shrink. |
||
2755 | * 0 = no resize |
||
2756 | * 1 = shrink to fit |
||
2757 | * 2 = extend to fit |
||
2758 | */ |
||
2759 | 5 | private static function checkMatrixOperands(&$operand1, &$operand2, $resize = 1) |
|
2789 | |||
2790 | /** |
||
2791 | * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0 |
||
2792 | * |
||
2793 | * @param mixed &$matrix matrix operand |
||
2794 | * @return int[] An array comprising the number of rows, and number of columns |
||
2795 | */ |
||
2796 | 5 | private static function getMatrixDimensions(&$matrix) |
|
2812 | |||
2813 | /** |
||
2814 | * Ensure that paired matrix operands are both matrices of the same size |
||
2815 | * |
||
2816 | * @param mixed &$matrix1 First matrix operand |
||
2817 | * @param mixed &$matrix2 Second matrix operand |
||
2818 | * @param int $matrix1Rows Row size of first matrix operand |
||
2819 | * @param int $matrix1Columns Column size of first matrix operand |
||
2820 | * @param int $matrix2Rows Row size of second matrix operand |
||
2821 | * @param int $matrix2Columns Column size of second matrix operand |
||
2822 | */ |
||
2823 | 5 | private static function resizeMatricesShrink(&$matrix1, &$matrix2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns) |
|
2855 | |||
2856 | /** |
||
2857 | * Ensure that paired matrix operands are both matrices of the same size |
||
2858 | * |
||
2859 | * @param mixed &$matrix1 First matrix operand |
||
2860 | * @param mixed &$matrix2 Second matrix operand |
||
2861 | * @param int $matrix1Rows Row size of first matrix operand |
||
2862 | * @param int $matrix1Columns Column size of first matrix operand |
||
2863 | * @param int $matrix2Rows Row size of second matrix operand |
||
2864 | * @param int $matrix2Columns Column size of second matrix operand |
||
2865 | */ |
||
2866 | private static function resizeMatricesExtend(&$matrix1, &$matrix2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns) |
||
2902 | |||
2903 | /** |
||
2904 | * Format details of an operand for display in the log (based on operand type) |
||
2905 | * |
||
2906 | * @param mixed $value First matrix operand |
||
2907 | * @return mixed |
||
2908 | */ |
||
2909 | 90 | private function showValue($value) |
|
2939 | |||
2940 | /** |
||
2941 | * Format type and details of an operand for display in the log (based on operand type) |
||
2942 | * |
||
2943 | * @param mixed $value First matrix operand |
||
2944 | * @return string|null |
||
2945 | */ |
||
2946 | 90 | private function showTypeDetails($value) |
|
2977 | |||
2978 | 91 | private function convertMatrixReferences($formula) |
|
3028 | |||
3029 | private static function mkMatrix() |
||
3033 | |||
3034 | // Binary Operators |
||
3035 | // These operators always work on two values |
||
3036 | // Array key is the operator, the value indicates whether this is a left or right associative operator |
||
3037 | private static $operatorAssociativity = [ |
||
3038 | '^' => 0, // Exponentiation |
||
3039 | '*' => 0, '/' => 0, // Multiplication and Division |
||
3040 | '+' => 0, '-' => 0, // Addition and Subtraction |
||
3041 | '&' => 0, // Concatenation |
||
3042 | '|' => 0, ':' => 0, // Intersect and Range |
||
3043 | '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0, // Comparison |
||
3044 | ]; |
||
3045 | |||
3046 | // Comparison (Boolean) Operators |
||
3047 | // These operators work on two values, but always return a boolean result |
||
3048 | private static $comparisonOperators = ['>' => true, '<' => true, '=' => true, '>=' => true, '<=' => true, '<>' => true]; |
||
3049 | |||
3050 | // Operator Precedence |
||
3051 | // This list includes all valid operators, whether binary (including boolean) or unary (such as %) |
||
3052 | // Array key is the operator, the value is its precedence |
||
3053 | private static $operatorPrecedence = [ |
||
3054 | ':' => 8, // Range |
||
3055 | '|' => 7, // Intersect |
||
3056 | '~' => 6, // Negation |
||
3057 | '%' => 5, // Percentage |
||
3058 | '^' => 4, // Exponentiation |
||
3059 | '*' => 3, '/' => 3, // Multiplication and Division |
||
3060 | '+' => 2, '-' => 2, // Addition and Subtraction |
||
3061 | '&' => 1, // Concatenation |
||
3062 | '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0, // Comparison |
||
3063 | ]; |
||
3064 | |||
3065 | // Convert infix to postfix notation |
||
3066 | 91 | private function _parseFormula($formula, Cell $pCell = null) |
|
3377 | |||
3378 | 89 | private static function dataTestReference(&$operandData) |
|
3393 | |||
3394 | // evaluate postfix notation |
||
3395 | |||
3396 | /** |
||
3397 | * @param string $cellID |
||
3398 | */ |
||
3399 | 91 | private function processTokenStack($tokens, $cellID = null, Cell $pCell = null) |
|
3764 | |||
3765 | 20 | private function validateBinaryOperand($cellID, &$operand, &$stack) |
|
3802 | |||
3803 | 61 | private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false) |
|
3924 | |||
3925 | /** |
||
3926 | * Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters |
||
3927 | * @param string $str1 First string value for the comparison |
||
3928 | * @param string $str2 Second string value for the comparison |
||
3929 | * @return int |
||
3930 | */ |
||
3931 | 21 | private function strcmpLowercaseFirst($str1, $str2) |
|
3938 | |||
3939 | /** |
||
3940 | * @param string $matrixFunction |
||
3941 | */ |
||
3942 | 20 | private function executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack) |
|
4016 | |||
4017 | // trigger an error, but nicely, if need be |
||
4018 | protected function raiseFormulaError($errorMessage) |
||
4027 | |||
4028 | /** |
||
4029 | * Extract range values |
||
4030 | * |
||
4031 | * @param string &$pRange String based range representation |
||
4032 | * @param Worksheet $pSheet Worksheet |
||
4033 | * @param bool $resetLog Flag indicating whether calculation log should be reset or not |
||
4034 | * @throws Calculation\Exception |
||
4035 | * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned. |
||
4036 | */ |
||
4037 | 33 | public function extractCellRange(&$pRange = 'A1', Worksheet $pSheet = null, $resetLog = true) |
|
4078 | |||
4079 | /** |
||
4080 | * Extract range values |
||
4081 | * |
||
4082 | * @param string &$pRange String based range representation |
||
4083 | * @param Worksheet $pSheet Worksheet |
||
4084 | * @param bool $resetLog Flag indicating whether calculation log should be reset or not |
||
4085 | * @throws Calculation\Exception |
||
4086 | * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned. |
||
4087 | */ |
||
4088 | 4 | public function extractNamedRange(&$pRange = 'A1', Worksheet $pSheet = null, $resetLog = true) |
|
4144 | |||
4145 | /** |
||
4146 | * Is a specific function implemented? |
||
4147 | * |
||
4148 | * @param string $pFunction Function Name |
||
4149 | * @return bool |
||
4150 | */ |
||
4151 | public function isImplemented($pFunction = '') |
||
4160 | |||
4161 | /** |
||
4162 | * Get a list of all implemented functions as an array of function objects |
||
4163 | * |
||
4164 | * @return array of Calculation\Category |
||
4165 | */ |
||
4166 | public function getFunctions() |
||
4170 | |||
4171 | /** |
||
4172 | * Get a list of implemented Excel function names |
||
4173 | * |
||
4174 | * @return array |
||
4175 | */ |
||
4176 | 2 | public function getImplementedFunctionNames() |
|
4187 | } |
||
4188 |
This check marks private properties in classes that are never used. Those properties can be removed.