public function accept(AbstractVisitor $visitor) { return $visitor->visitLegacyNode($this); }
/** * Part of the visitor pattern to realize a double dispatching. It is used * to tell the visitor what kind of Node/Module the current Node is. * * Note: This is the only function that the visitor pattern really need * for all nodes! * * @param AbstractVisitor $visitor * * @return mixed */ public function accept(AbstractVisitor $visitor) { return $visitor->visitDynamicHTMLNode($this); }