PHP Class PDepend\TextUI\Command

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

Méthodes publiques

Méthode Description
main ( ) : integer Main method that starts the command line runner.
run ( ) : integer Performs the main cli process and returns the exit code.

Méthodes protégées

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

Private Methods

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

Method Details

assignArguments() protected méthode

Assign CLI arguments to current runner instance
protected assignArguments ( ) : boolean
Résultat boolean

main() public static méthode

Main method that starts the command line runner.
public static main ( ) : integer
Résultat integer The exit code.

parseArguments() protected méthode

Parses the cli arguments.
protected parseArguments ( ) : boolean
Résultat boolean

printAnalyzerOptions() protected méthode

Prints the analyzer options.
protected printAnalyzerOptions ( integer $length ) : integer
$length integer Length of the longest option.
Résultat integer

printHelp() protected méthode

Outputs the main help of PDepend.
protected printHelp ( ) : void
Résultat void

printLogOptions() protected méthode

Prints all available log options and returns the length of the longest option.
protected printLogOptions ( ) : integer
Résultat integer

printUsage() protected méthode

Outputs the base usage of PDepend.
protected printUsage ( ) : void
Résultat void

printVersion() protected méthode

Outputs the current PDepend version.
protected printVersion ( ) : void
Résultat void

printWorkarounds() protected méthode

If the current PHP installation requires some workarounds or limitations, this method will output a message on STDOUT.
protected printWorkarounds ( ) : void
Résultat void

run() public méthode

Performs the main cli process and returns the exit code.
public run ( ) : integer
Résultat integer