예제 #1
0
 /**
  * Extract all variables from code
  */
 protected function variablesFromCode()
 {
     $tree = [];
     foreach ($this->codeGenerator->getVariables($tree) as $var => $val) {
         if (!isset($this->vars[$var])) {
             $this->vars[$var] = new VariableGenerator($var);
         }
     }
 }