PHP Класс PDepend\TextUI\Runner

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

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

Метод Описание
__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