コード例 #1
0
ファイル: EvaluationVisitor.php プロジェクト: sysvyz/anan
 public function visitVariableNode(VariableNodeInterface $node)
 {
     $varName = $node->getName();
     if (!isset($this->bindings[$varName])) {
         throw new OutOfBoundsException($varName . ' unknown');
     }
     return $this->bindings[$varName];
 }
コード例 #2
0
ファイル: XMLVisitor.php プロジェクト: sysvyz/anan
 public function visitVariableNode(VariableNodeInterface $node)
 {
     return $this->_renderNode($this->_indent($this->depth + 1) . '<variable value="' . $node->getName() . '"/>');
 }
コード例 #3
0
ファイル: RenderStringVisitor.php プロジェクト: sysvyz/anan
 public function visitVariableNode(VariableNodeInterface $node)
 {
     return $node->getName();
 }