Created
May 22, 2013 00:14
-
-
Save b1rdex/5624332 to your computer and use it in GitHub Desktop.
support for exprlib syntax for formulate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static public function build($formula, $isCalculable = self::CALCULABLE) | |
{ | |
return new Formula($formula, $isCalculable); | |
} | |
public function setVars(array $vars) | |
{ | |
$this->parameterBag->datas = array_merge($this->parameterBag->datas, $vars); | |
return $this; | |
} | |
public function evaluate() | |
{ | |
return $this->render(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment