* {$a = 2} * {foreach $a => $b} * {$b} * {/foreach} * * * @var int */ public $typeHint = null; /** * Constructs a new AstNode. */ public function __construct() { } /** * Checks if the visitor object is accepted and if so calls the appropriate * visitor method in it. * * The sub classes don't need to implement the usual accept() method. * * If the current object is: ezcTemplateVariableAstNode then * the method: $visitor->visitVariableTstNode( $this ) will be called. * * @param ezcTemplateAstNodeVisitor $visitor * The visitor object which can visit the current code element. * @return ezcTemplateAstNode */ public function accept( ezcTemplateAstNodeVisitor $visitor ) { $class = get_class( $this ); $visit = "visit" . substr( $class, 11 ); return $visitor->$visit( $this ); } } ?>