コード例 #1
0
 public function accept(NodeVisitorInterface $visitor)
 {
     if (false !== $visitor->enterTagAttribute($this)) {
         if (false !== $visitor->enterTagAttributeName($this)) {
             $this->getName()->accept($visitor);
         }
         $visitor->leaveTagAttributeName($this);
         if ($this->getValue()) {
             if (false !== $visitor->enterTagAttributeValue($this)) {
                 $this->getValue()->accept($visitor);
             }
             $visitor->leaveTagAttributeValue($this);
         }
     }
     $visitor->leaveTagAttribute($this);
 }