PHPStan\Analyser\Analyser::__construct PHP Method

__construct() public method

public __construct ( Broker $broker, PHPStan\Parser\Parser $parser, Registry $registry, NodeScopeResolver $nodeScopeResolver, Standard $printer, array $analyseExcludes, array $ignoreErrors, string $bootstrapFile = null )
$broker PHPStan\Broker\Broker
$parser PHPStan\Parser\Parser
$registry PHPStan\Rules\Registry
$nodeScopeResolver NodeScopeResolver
$printer PhpParser\PrettyPrinter\Standard
$analyseExcludes array
$ignoreErrors array
$bootstrapFile string
    public function __construct(Broker $broker, Parser $parser, Registry $registry, NodeScopeResolver $nodeScopeResolver, \PhpParser\PrettyPrinter\Standard $printer, array $analyseExcludes, array $ignoreErrors, string $bootstrapFile = null)
    {
        $this->broker = $broker;
        $this->parser = $parser;
        $this->registry = $registry;
        $this->nodeScopeResolver = $nodeScopeResolver;
        $this->printer = $printer;
        $this->analyseExcludes = array_map(function (string $exclude) : string {
            return str_replace('/', DIRECTORY_SEPARATOR, $exclude);
        }, $analyseExcludes);
        $this->ignoreErrors = $ignoreErrors;
        $this->bootstrapFile = $bootstrapFile;
    }