Skip to content

Instantly share code, notes, and snippets.

@b1rdex
Created May 22, 2013
Embed
What would you like to do?
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