Ejemplo n.º 1
0
 private function createHook($newRules, $pseudoMatcher, $properties)
 {
     $hook = new \Transphporm\Hook\PropertyHook($newRules, $this->baseDir, $this->line, $this->baseDir, $this->line, $pseudoMatcher, new \Transphporm\Parser\Value($this->functionSet), $this->functionSet);
     foreach ($properties as $name => $property) {
         $hook->registerProperty($name, $property);
     }
     return $hook;
 }
Ejemplo n.º 2
0
 private function createHook($newRules, $pseudoMatcher, $properties)
 {
     $var = "";
     // PropertyHook requires that baseDir be passed by refrence
     // and there is no reason to pass it so create $var to avoid errors
     $hook = new \Transphporm\Hook\PropertyHook($newRules, $var, $this->line, "", $this->line, $pseudoMatcher, new \Transphporm\Parser\Value($this->functionSet), $this->functionSet);
     foreach ($properties as $name => $property) {
         $hook->registerProperty($name, $property);
     }
     return $hook;
 }