Created
May 22, 2013 00:14
Revisions
-
b1rdex created this gist
May 22, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ 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(); }