Exemple #1
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param \PDepend\Source\ASTVisitor\ASTVisitor $visitor
  * @param mixed $data
  * @return mixed
  * @since 0.9.12
  */
 public function accept(ASTVisitor $visitor, $data = null)
 {
     return $visitor->visitConstant($this, $data);
 }
Exemple #2
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param \PDepend\Source\ASTVisitor\ASTVisitor $visitor The calling visitor instance.
  * @param mixed                                 $data
  *
  * @return mixed
  * @since  0.9.12
  */
 public function accept(\PDepend\Source\ASTVisitor\ASTVisitor $visitor, $data = null)
 {
     return $visitor->visitConstant($this, $data);
 }