PHP Интерфейс PDepend\Metrics\Analyzer

Показать файл Открыть проект

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

Метод Описание
__construct ( array $options = [] ) Constructs a new analyzer instance.
addAnalyzeListener ( PDepend\Metrics\AnalyzerListener $listener ) : void Adds a listener to this analyzer.
analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
isEnabled ( ) : boolean An analyzer that is active must return true to recognized by pdepend framework, while an analyzer that does not perform any action for any reason should return false.
setOptions ( array $options = [] ) Set global options

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

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

Constructs a new analyzer instance.
public __construct ( array $options = [] )
$options array

addAnalyzeListener() публичный Метод

Adds a listener to this analyzer.
public addAnalyzeListener ( PDepend\Metrics\AnalyzerListener $listener ) : void
$listener PDepend\Metrics\AnalyzerListener The listener instance.
Результат void

analyze() публичный Метод

Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
public analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void
$namespaces PDepend\Source\AST\ASTNamespace[]
Результат void

isEnabled() публичный Метод

An analyzer that is active must return true to recognized by pdepend framework, while an analyzer that does not perform any action for any reason should return false.
С версии: 0.9.10
public isEnabled ( ) : boolean
Результат boolean

setOptions() публичный Метод

Set global options
С версии: 2.0.1
public setOptions ( array $options = [] )
$options array