Skip to content

Instantly share code, notes, and snippets.

@b1rdex
Created May 22, 2013 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b1rdex/5624332 to your computer and use it in GitHub Desktop.
Save b1rdex/5624332 to your computer and use it in GitHub Desktop.
support for exprlib syntax for formulate
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