Ejemplo n.º 1
0
 public function accept(NodeVisitorInterface $visitor)
 {
     if (false !== $visitor->enterRun($this)) {
         if (false !== $visitor->enterRunChilds($this)) {
             $this->visitChilds($visitor);
         }
         $visitor->leaveRunChilds($this);
         if (false !== $visitor->enterRunMidblock($this)) {
             if (null !== ($block = $this->getMidblock())) {
                 $block->accept($visitor);
             }
         }
         $visitor->leaveRunMidblock($this);
     }
     $visitor->leaveRun($this);
 }