public function accept(NodeVisitorInterface $visitor) { if (false !== $visitor->enterTag($this)) { if (false !== $visitor->enterTagAttributes($this)) { foreach ($this->getAttributes() as $attribute) { $attribute->accept($visitor); } } $visitor->leaveTagAttributes($this); if (false !== $visitor->enterTagContent($this)) { $this->visitContent($visitor); } $visitor->leaveTagContent($this); if (false !== $visitor->enterTagChilds($this)) { $this->visitChilds($visitor); } $visitor->leaveTagChilds($this); } $visitor->leaveTag($this); }