PHP 인터페이스 PDepend\Metrics\Analyzer

파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__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