final class CommandLine

Declares the commands, their options and the global options of the command line.

Methods§

public function create(): Application

Creates the console application; it neither exits nor catches exceptions itself.

Returns

Application The application with every command registered
Test cases 9
Called from 1
Calls 9
public function command(string $name, string $description): Command

Declares one command with its options and handler.

Parameters

$namestringThe command name
$descriptionstringThe one-line description shown in the overview

Returns

Command The command
Test cases 3
Called from 1
Calls 9

Test cases 17§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 7
Other tests reaching this symbol 10

Relations§

Instantiated in 1
Method calls 1