コード例 #1
0
ファイル: LegacyNode.php プロジェクト: rukzuk/rukzuk
 public function accept(AbstractVisitor $visitor)
 {
     return $visitor->visitLegacyNode($this);
 }
コード例 #2
0
ファイル: DynamicHTMLNode.php プロジェクト: rukzuk/rukzuk
 /**
  * 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);
 }