diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2018-09-06 20:41:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-06 20:41:13 +0300 |
commit | 7b657db13f0b76432ca0039e45f4b8f5e09879c2 (patch) | |
tree | 954c50f2644212742442e0027efb081620d2a109 /src/NXP/MathExecutor.php | |
parent | a969571772a9761f67672b229741f209f5391560 (diff) | |
parent | aa1a092a9e231e8f923ab40365dff092c2908903 (diff) |
Merge branch 'master' into dev
Diffstat (limited to 'src/NXP/MathExecutor.php')
-rw-r--r-- | src/NXP/MathExecutor.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php index 80f0bde..c5c7add 100644 --- a/src/NXP/MathExecutor.php +++ b/src/NXP/MathExecutor.php @@ -157,6 +157,16 @@ class MathExecutor } /** + * Get all registered operators to executor + * + * @return array of operator class names + */ + public function getOperators() + { + return $this->tokenFactory->getOperators(); + } + + /** * Add function to executor * * @param string $name Name of function @@ -172,6 +182,17 @@ class MathExecutor } /** + * Get all registered functions + * + * @return array containing callback and places indexed by + * function name + */ + public function getFunctions() + { + return $this->tokenFactory->getFunctions(); + } + + /** * Execute expression * * @param $expression |