PHP Класс PDepend\TextUI\Command

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

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

Метод Описание
main ( ) : integer Main method that starts the command line runner.
run ( ) : integer Performs the main cli process and returns the exit code.

Защищенные методы

Метод Описание
assignArguments ( ) : boolean Assign CLI arguments to current runner instance
parseArguments ( ) : boolean Parses the cli arguments.
printAnalyzerOptions ( integer $length ) : integer Prints the analyzer options.
printHelp ( ) : void Outputs the main help of PDepend.
printLogOptions ( ) : integer Prints all available log options and returns the length of the longest option.
printUsage ( ) : void Outputs the base usage of PDepend.
printVersion ( ) : void Outputs the current PDepend version.
printWorkarounds ( ) : void If the current PHP installation requires some workarounds or limitations, this method will output a message on STDOUT.

Приватные методы

Метод Описание
printDbusOption ( integer $length ) : void Optionally outputs the dbus option when the required extension is loaded.
printOption ( string $option, string $message, integer $length ) : void Prints a single option.
printStatistics ( $startTime )

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

assignArguments() защищенный Метод

Assign CLI arguments to current runner instance
protected assignArguments ( ) : boolean
Результат boolean

main() публичный статический Метод

Main method that starts the command line runner.
public static main ( ) : integer
Результат integer The exit code.

parseArguments() защищенный Метод

Parses the cli arguments.
protected parseArguments ( ) : boolean
Результат boolean

printAnalyzerOptions() защищенный Метод

Prints the analyzer options.
protected printAnalyzerOptions ( integer $length ) : integer
$length integer Length of the longest option.
Результат integer

printHelp() защищенный Метод

Outputs the main help of PDepend.
protected printHelp ( ) : void
Результат void

printLogOptions() защищенный Метод

Prints all available log options and returns the length of the longest option.
protected printLogOptions ( ) : integer
Результат integer

printUsage() защищенный Метод

Outputs the base usage of PDepend.
protected printUsage ( ) : void
Результат void

printVersion() защищенный Метод

Outputs the current PDepend version.
protected printVersion ( ) : void
Результат void

printWorkarounds() защищенный Метод

If the current PHP installation requires some workarounds or limitations, this method will output a message on STDOUT.
protected printWorkarounds ( ) : void
Результат void

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

Performs the main cli process and returns the exit code.
public run ( ) : integer
Результат integer