From 00def17f0e9183544813427cddbdaed851986309 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Wed, 12 Sep 2018 11:55:31 -0400 Subject: Support for double quoted strings Changed array() to [] syntax. Added variable in question to unknown variable exception. Added getVar and getVars accessor functions. Added getOperators and getFunctions accessor functions for completeness. Extended all Exceptions off MathExecutorException. --- src/NXP/Exception/IncorrectBracketsException.php | 2 +- src/NXP/Exception/IncorrectExpressionException.php | 2 +- src/NXP/Exception/UnknownFunctionException.php | 2 +- src/NXP/Exception/UnknownOperatorException.php | 2 +- src/NXP/Exception/UnknownTokenException.php | 2 +- src/NXP/Exception/UnknownVariableException.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/NXP/Exception') diff --git a/src/NXP/Exception/IncorrectBracketsException.php b/src/NXP/Exception/IncorrectBracketsException.php index e2aaed9..b3e8315 100644 --- a/src/NXP/Exception/IncorrectBracketsException.php +++ b/src/NXP/Exception/IncorrectBracketsException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Alexander Kiryukhin */ -class IncorrectBracketsException extends \Exception +class IncorrectBracketsException extends MathExecutorException { } diff --git a/src/NXP/Exception/IncorrectExpressionException.php b/src/NXP/Exception/IncorrectExpressionException.php index ad5bc42..6f579c1 100644 --- a/src/NXP/Exception/IncorrectExpressionException.php +++ b/src/NXP/Exception/IncorrectExpressionException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk */ -class IncorrectExpressionException extends \Exception +class IncorrectExpressionException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownFunctionException.php b/src/NXP/Exception/UnknownFunctionException.php index 5bb3658..e8ff0c0 100644 --- a/src/NXP/Exception/UnknownFunctionException.php +++ b/src/NXP/Exception/UnknownFunctionException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk */ -class UnknownFunctionException extends \Exception +class UnknownFunctionException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownOperatorException.php b/src/NXP/Exception/UnknownOperatorException.php index b6617c3..acb4b98 100644 --- a/src/NXP/Exception/UnknownOperatorException.php +++ b/src/NXP/Exception/UnknownOperatorException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk */ -class UnknownOperatorException extends \Exception +class UnknownOperatorException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownTokenException.php b/src/NXP/Exception/UnknownTokenException.php index b8a593f..bba28a4 100644 --- a/src/NXP/Exception/UnknownTokenException.php +++ b/src/NXP/Exception/UnknownTokenException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Vitaliy Zhuk */ -class UnknownTokenException extends \Exception +class UnknownTokenException extends MathExecutorException { } diff --git a/src/NXP/Exception/UnknownVariableException.php b/src/NXP/Exception/UnknownVariableException.php index 8de9493..8c215db 100644 --- a/src/NXP/Exception/UnknownVariableException.php +++ b/src/NXP/Exception/UnknownVariableException.php @@ -14,6 +14,6 @@ namespace NXP\Exception; /** * @author Alexander Kiryukhin */ -class UnknownVariableException extends \Exception +class UnknownVariableException extends MathExecutorException { } -- cgit v1.2.3