PHP Class PDepend\TextUI\Runner

Afficher le fichier Open project: pdepend/pdepend Class Usage Examples

Méthodes publiques

Méthode Description
__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?

Method Details

__construct() public méthode

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

addOption() public méthode

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

addProcessListener() public méthode

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

addReportGenerator() public méthode

Adds a logger to this runner.
public addReportGenerator ( string $generatorId, string $reportFile ) : void
$generatorId string
$reportFile string
Résultat void

getParseErrors() public méthode

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

hasParseErrors() public méthode

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

run() public méthode

Starts the main PDepend process and returns true after a successful execution.
public run ( ) : boolean
Résultat boolean

setExcludeDirectories() public méthode

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

setExcludeNamespaces() public méthode

Sets a list of exclude packages.
public setExcludeNamespaces ( array $excludePackages ) : void
$excludePackages array
Résultat void

setFileExtensions() public méthode

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

setSourceArguments() public méthode

Sets a list of source directories and files.
public setSourceArguments ( array $sourceArguments ) : void
$sourceArguments array
Résultat void

setWithoutAnnotations() public méthode

Should the parser ignore doc comment annotations?
public setWithoutAnnotations ( ) : void
Résultat void