public function __construct(Configuration $configuration, AstMap $astMap, CollectorFactory $collectorFactory, AstParserInterface $astParser) { $this->configuration = $configuration; $this->astMap = $astMap; $this->collectorFactory = $collectorFactory; $this->astParser = $astParser; }