protected function configureAnalyzer(Analyzer $analyzer) { $visitor = (new PublicClass())->setThreshold($this->threshold)->setMinMethodCount($this->minMethodCount); $analyzer->addVisitor('analyze', $visitor); }
protected function configureAnalyzer(Analyzer $analyzer) { $analyzer->addVisitor('analyze', $this->visitor); }
protected function configureAnalyzer(Analyzer $analyzer) { $analyzer->addVisitor('analyze', new PublicAttributes()); }