Свойство | Тип | Описание | |
---|---|---|---|
$args | array | ||
$description | string | ||
$flags | array | ||
$options | array | ||
$subCommands | array | ||
$usage | string |
Метод | Описание | |
---|---|---|
__toString ( ) | ||
fromCommandClass ( string $name, string $subCommand = null ) : |
Creates an Help object from a class subclassing Command | |
fromFQDN ( string $fqdn, string $subCommand = null ) : |
Creates an Help object from a FQDN | |
fromFunction ( string $name ) : |
Creates an Help object from a function | |
getArgs ( ) : array | ||
getDescrition ( ) : string | ||
getFlags ( ) : array | ||
getOptions ( ) : array | ||
getSubCommands ( ) : array | ||
getUsage ( ) : string | ||
hasSubCommands ( ) : boolean | ||
render ( ) : string |
Метод | Описание | |
---|---|---|
__construct ( string $text = '' ) | ||
parse ( ) |
public static fromCommandClass ( string $name, string $subCommand = null ) : |
||
$name | string | |
$subCommand | string | |
Результат |
public static fromFunction ( string $name ) : |
||
$name | string | |
Результат |