Example #1
0
 /**
  * Get a visitor.
  *
  * @param  string $visitor Full class name of the visitor.
  *
  * @return NodeVisitorInterface|null
  */
 public function getVisitor($visitor)
 {
     return $this->visitors->getVisitor($visitor);
 }
Example #2
0
 /**
  * Get a visitor.
  *
  * @param  string $visitor
  *
  * @return \Phint\NodeVisitorInterface|null
  */
 private function getVisitor($visitor)
 {
     return $this->visitors->getVisitor('Phint\\Visitors\\' . $visitor);
 }