PHP 클래스 PDepend\TextUI\Runner

파일 보기 프로젝트 열기: pdepend/pdepend 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( PDepend\Report\ReportGeneratorFactory $reportGeneratorFactory, Engine $engine )
addOption ( string $identifier, string | array $value ) : void Adds a logger or analyzer option.
addProcessListener ( PDepend\ProcessListener $processListener ) : void Adds a process listener instance that will be hooked into PDepend's analyzing process.
addReportGenerator ( string $generatorId, string $reportFile ) : void Adds a logger to this runner.
getParseErrors ( ) : array(string) This method will return an array with error messages for all failures that happened during the parsing process.
hasParseErrors ( ) : boolean This method will return true when there were errors during the parse process.
run ( ) : boolean Starts the main PDepend process and returns true after a successful execution.
setExcludeDirectories ( array $excludeDirectories ) : void Sets a list of exclude directories.
setExcludeNamespaces ( array $excludePackages ) : void Sets a list of exclude packages.
setFileExtensions ( array $extensions ) : void Sets a list of allowed file extensions.
setSourceArguments ( array $sourceArguments ) : void Sets a list of source directories and files.
setWithoutAnnotations ( ) : void Should the parser ignore doc comment annotations?

메소드 상세

__construct() 공개 메소드

public __construct ( PDepend\Report\ReportGeneratorFactory $reportGeneratorFactory, Engine $engine )
$reportGeneratorFactory PDepend\Report\ReportGeneratorFactory
$engine PDepend\Engine

addOption() 공개 메소드

Adds a logger or analyzer option.
public addOption ( string $identifier, string | array $value ) : void
$identifier string
$value string | array
리턴 void

addProcessListener() 공개 메소드

Adds a process listener instance that will be hooked into PDepend's analyzing process.
public addProcessListener ( PDepend\ProcessListener $processListener ) : void
$processListener PDepend\ProcessListener
리턴 void

addReportGenerator() 공개 메소드

Adds a logger to this runner.
public addReportGenerator ( string $generatorId, string $reportFile ) : void
$generatorId string
$reportFile string
리턴 void

getParseErrors() 공개 메소드

This method will return an array with error messages for all failures that happened during the parsing process.
public getParseErrors ( ) : array(string)
리턴 array(string)

hasParseErrors() 공개 메소드

This method will return true when there were errors during the parse process.
public hasParseErrors ( ) : boolean
리턴 boolean

run() 공개 메소드

Starts the main PDepend process and returns true after a successful execution.
public run ( ) : boolean
리턴 boolean

setExcludeDirectories() 공개 메소드

NOTE: If this method is called, it will overwrite the default settings.
public setExcludeDirectories ( array $excludeDirectories ) : void
$excludeDirectories array
리턴 void

setExcludeNamespaces() 공개 메소드

Sets a list of exclude packages.
public setExcludeNamespaces ( array $excludePackages ) : void
$excludePackages array
리턴 void

setFileExtensions() 공개 메소드

NOTE: If you call this method, it will replace the default file extensions.
public setFileExtensions ( array $extensions ) : void
$extensions array
리턴 void

setSourceArguments() 공개 메소드

Sets a list of source directories and files.
public setSourceArguments ( array $sourceArguments ) : void
$sourceArguments array
리턴 void

setWithoutAnnotations() 공개 메소드

Should the parser ignore doc comment annotations?
public setWithoutAnnotations ( ) : void
리턴 void