PHP Класс PHPStan\Analyser\Analyser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Broker $broker, PHPStan\Parser\Parser $parser, Registry $registry, NodeScopeResolver $nodeScopeResolver, Standard $printer, array $analyseExcludes, array $ignoreErrors, string $bootstrapFile = null )
analyse ( array $files, Closure $progressCallback = null ) : array
isExcludedFromAnalysing ( string $file ) : boolean

Приватные методы

Метод Описание
createErrors ( PhpParser\Node $node, string $file, array $messages ) : array

Описание методов

__construct() публичный метод

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

analyse() публичный метод

public analyse ( array $files, Closure $progressCallback = null ) : array
$files array
$progressCallback Closure
Результат array errors

isExcludedFromAnalysing() публичный метод

public isExcludedFromAnalysing ( string $file ) : boolean
$file string
Результат boolean