Example #1
0
 public function visitVariableNode(VariableNodeInterface $node)
 {
     $varName = $node->getName();
     if (!isset($this->bindings[$varName])) {
         throw new OutOfBoundsException($varName . ' unknown');
     }
     return $this->bindings[$varName];
 }
Example #2
0
 public function visitVariableNode(VariableNodeInterface $node)
 {
     return $this->_renderNode($this->_indent($this->depth + 1) . '<variable value="' . $node->getName() . '"/>');
 }
Example #3
0
 public function visitVariableNode(VariableNodeInterface $node)
 {
     return $node->getName();
 }