public function setAnalyzer(Analyzer $analyzer)
 {
     $this->logger = $analyzer->logger;
     $this->registry = $registry = $analyzer->getTypeRegistry();
     $this->reverseInterpreter = new SemanticReverseAbstractInterpreter($registry);
     $this->functionInterpreter = new ChainableFunctionInterpreter(array(new CoreFunctionInterpreter($registry), new ArrayFunctionInterpreter($registry)));
     $this->methodInterpreter = new ChainableMethodInterpreter(array(new CoreMethodInterpreter($registry), new PhpUnitMethodInterpreter($registry)));
     $this->commentParser = new \Scrutinizer\PhpAnalyzer\PhpParser\DocCommentParser($registry);
     $this->commentParser->setLogger($analyzer->logger);
     $this->scopeCreator = new TypedScopeCreator($registry);
 }
 public function setAnalyzer(Analyzer $analyzer)
 {
     $this->analyzer = $analyzer;
     $this->typeRegistry = $analyzer->getTypeRegistry();
 }
 public function setAnalyzer(Analyzer $analyzer)
 {
     $this->registry = $analyzer->getTypeRegistry();
     $this->parser = new DocCommentParser($this->registry);
 }
 public function setAnalyzer(\Scrutinizer\PhpAnalyzer\Analyzer $analyzer)
 {
     $this->analyzer = $analyzer;
     $this->registry = $analyzer->getTypeRegistry();
 }