コード例 #1
0
ファイル: FunctionGenerator.php プロジェクト: nechutny/BP
 /**
  * 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);
         }
     }
 }