SYMBOL INDEX (109 symbols across 16 files) FILE: src/NXP/Classes/Calculator.php class Calculator (line 22) | class Calculator method __construct (line 30) | public function __construct(private array $functions, private array $o... method calculate (line 44) | public function calculate(array $tokens, array $variables, ?callable $... FILE: src/NXP/Classes/CustomFunction.php class CustomFunction (line 9) | class CustomFunction method __construct (line 27) | public function __construct(public string $name, callable $function) method execute (line 42) | public function execute(array &$stack, int $paramCountInStack) : Token FILE: src/NXP/Classes/Operator.php class Operator (line 8) | class Operator method __construct (line 20) | public function __construct(public string $operator, public bool $isRi... method execute (line 32) | public function execute(array &$stack) : Token FILE: src/NXP/Classes/Token.php class Token (line 5) | class Token method __construct (line 31) | public function __construct(public string $type, public mixed $value, ... FILE: src/NXP/Classes/Tokenizer.php class Tokenizer (line 22) | class Tokenizer method __construct (line 41) | public function __construct(private string $input, private array $oper... method tokenize (line 45) | public function tokenize() : self method buildReversePolishNotation (line 249) | public function buildReversePolishNotation() : array method isNumber (line 367) | private function isNumber(string $ch) : bool method isAlpha (line 372) | private function isAlpha(string $ch) : bool method emptyNumberBufferAsLiteral (line 377) | private function emptyNumberBufferAsLiteral() : void method isDot (line 385) | private function isDot(string $ch) : bool method isLP (line 390) | private function isLP(string $ch) : bool method isRP (line 395) | private function isRP(string $ch) : bool method emptyStrBufferAsVariable (line 400) | private function emptyStrBufferAsVariable() : void method isComma (line 408) | private function isComma(string $ch) : bool FILE: src/NXP/Exception/DivisionByZeroException.php class DivisionByZeroException (line 17) | class DivisionByZeroException extends MathExecutorException FILE: src/NXP/Exception/IncorrectBracketsException.php class IncorrectBracketsException (line 17) | class IncorrectBracketsException extends MathExecutorException FILE: src/NXP/Exception/IncorrectExpressionException.php class IncorrectExpressionException (line 17) | class IncorrectExpressionException extends MathExecutorException FILE: src/NXP/Exception/IncorrectFunctionParameterException.php class IncorrectFunctionParameterException (line 14) | class IncorrectFunctionParameterException extends MathExecutorException FILE: src/NXP/Exception/IncorrectNumberOfFunctionParametersException.php class IncorrectNumberOfFunctionParametersException (line 14) | class IncorrectNumberOfFunctionParametersException extends MathExecutorE... FILE: src/NXP/Exception/MathExecutorException.php class MathExecutorException (line 17) | class MathExecutorException extends \Exception FILE: src/NXP/Exception/UnknownFunctionException.php class UnknownFunctionException (line 17) | class UnknownFunctionException extends MathExecutorException FILE: src/NXP/Exception/UnknownOperatorException.php class UnknownOperatorException (line 17) | class UnknownOperatorException extends MathExecutorException FILE: src/NXP/Exception/UnknownVariableException.php class UnknownVariableException (line 17) | class UnknownVariableException extends MathExecutorException FILE: src/NXP/MathExecutor.php class MathExecutor (line 28) | class MathExecutor method __construct (line 65) | public function __construct() method __clone (line 70) | public function __clone() method addOperator (line 79) | public function addOperator(Operator $operator) : self method execute (line 95) | public function execute(string $expression, bool $cache = true) method addFunction (line 123) | public function addFunction(string $name, ?callable $function = null) ... method getVars (line 135) | public function getVars() : array method getVar (line 145) | public function getVar(string $variable) : mixed method setVar (line 163) | public function setVar(string $variable, mixed $value) : self method varExists (line 178) | public function varExists(string $variable) : bool method setVars (line 190) | public function setVars(array $variables, bool $clear = true) : self method setVarNotFoundHandler (line 209) | public function setVarNotFoundHandler(callable $handler) : self method setVarValidationHandler (line 224) | public function setVarValidationHandler(?callable $handler) : self method removeVar (line 235) | public function removeVar(string $variable) : self method removeVars (line 245) | public function removeVars() : self method getOperators (line 258) | public function getOperators() : array method getFunctions (line 269) | public function getFunctions() : array method removeOperator (line 277) | public function removeOperator(string $operator) : self method setDivisionByZeroIsZero (line 287) | public function setDivisionByZeroIsZero() : self method getCache (line 298) | public function getCache() : array method clearCache (line 306) | public function clearCache() : self method useBCMath (line 313) | public function useBCMath(int $scale = 2) : self method addDefaults (line 338) | protected function addDefaults() : self method defaultOperators (line 360) | protected function defaultOperators() : array method defaultFunctions (line 402) | protected function defaultFunctions() : array method defaultVars (line 529) | protected function defaultVars() : array method defaultVarValidation (line 541) | protected function defaultVarValidation(string $variable, mixed $value... FILE: tests/MathTest.php class MathTest (line 24) | class MathTest extends TestCase method testCalculating (line 26) | #[\PHPUnit\Framework\Attributes\DataProvider('providerExpressions')] method providerExpressions (line 52) | public static function providerExpressions() method testBCMathCalculating (line 270) | #[\PHPUnit\Framework\Attributes\DataProvider('bcMathExpressions')] method bcMathExpressions (line 302) | public static function bcMathExpressions() method testIncorrectExpressionException (line 514) | #[\PHPUnit\Framework\Attributes\DataProvider('incorrectExpressions')] method incorrectExpressions (line 530) | public static function incorrectExpressions() method testUnknownFunctionException (line 550) | public function testUnknownFunctionException() : void method testZeroDivision (line 557) | public function testZeroDivision() : void method testUnaryOperators (line 564) | public function testUnaryOperators() : void method testZeroDivisionException (line 575) | public function testZeroDivisionException() : void method testVariableIncorrectExpressionException (line 584) | public function testVariableIncorrectExpressionException() : void method testNotVariableOperator (line 594) | public function testNotVariableOperator() : void method testExponentiation (line 609) | public function testExponentiation() : void method testStringEscape (line 615) | public function testStringEscape() : void method testArrays (line 636) | public function testArrays() : void method testFunctionParameterOrder (line 652) | public function testFunctionParameterOrder() : void method testFunction (line 661) | public function testFunction() : void method testFunctionUnlimitedParameters (line 668) | public function testFunctionUnlimitedParameters() : void method testFunctionOptionalParameters (line 688) | public function testFunctionOptionalParameters() : void method testFunctionIncorrectNumberOfParameters (line 696) | public function testFunctionIncorrectNumberOfParameters() : void method testFunctionIncorrectNumberOfParametersTooMany (line 704) | public function testFunctionIncorrectNumberOfParametersTooMany() : void method testFunctionIf (line 712) | public function testFunctionIf() : void method testVariables (line 816) | public function testVariables() : void method testEvaluateFunctionParameters (line 855) | public function testEvaluateFunctionParameters() : void method testFunctionsWithQuotes (line 871) | public function testFunctionsWithQuotes() : void method testQuotes (line 879) | public function testQuotes() : void method testBeginWithBracketAndMinus (line 895) | public function testBeginWithBracketAndMinus() : void method testStringComparison (line 902) | public function testStringComparison() : void method testVarStringComparison (line 916) | public function testVarStringComparison() : void method testOnVarNotFound (line 926) | public function testOnVarNotFound() : void method testGetVarException (line 941) | public function testGetVarException() : void method testMinusZero (line 948) | public function testMinusZero() : void method testScientificNotation (line 955) | public function testScientificNotation() : void method testNullReturnType (line 963) | public function testNullReturnType() : void method testGetFunctionsReturnsArray (line 970) | public function testGetFunctionsReturnsArray() : void method testGetFunctionsReturnsFunctions (line 976) | public function testGetFunctionsReturnsFunctions() : void method testGetVarsReturnsArray (line 982) | public function testGetVarsReturnsArray() : void method testGetVarsReturnsCount (line 988) | public function testGetVarsReturnsCount() : void method testUndefinedVarThrowsExecption (line 994) | public function testUndefinedVarThrowsExecption() : void method testSetVarsAcceptsAllScalars (line 1002) | public function testSetVarsAcceptsAllScalars() : void method testSetVarsDoesNotAcceptObject (line 1023) | public function testSetVarsDoesNotAcceptObject() : void method testSetVarsDoesNotAcceptResource (line 1030) | public function testSetVarsDoesNotAcceptResource() : void method testSetCustomVarValidator (line 1037) | public function testSetCustomVarValidator() : void method testSetCustomVarNameValidator (line 1064) | public function testSetCustomVarNameValidator() : void method testVarExists (line 1086) | public function testVarExists() : void method testCalculatingValues (line 1095) | #[\PHPUnit\Framework\Attributes\DataProvider('providerExpressionValues')] method providerExpressionValues (line 1117) | public static function providerExpressionValues() method testCache (line 1150) | public function testCache() : void method testUnsupportedOperands (line 1172) | public function testUnsupportedOperands() : void