Ejemplo n.º 1
0
 public function accept(AbstractVisitor $visitor)
 {
     return $visitor->visitLegacyNode($this);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }