Methods |
public
|
getContainer(): CliApplicationInterface
Get the command's service container
Get the command's service container
|
#
|
public
|
getName(): string
Get the command name as a string of space-delimited subcommands
Get the command name as a string of space-delimited subcommands
Returns an empty string if {@see CliCommandNodeInterface::setName()} has
not been called, or if an empty array of subcommands was passed to
{@see CliCommandNodeInterface::setName()}.
|
#
|
public
|
getNameParts(): string[]
Get the command name as an array of subcommands
Get the command name as an array of subcommands
Implemented by
|
#
|
public
|
getDescription(): string
Get a one-line description of the command
Get a one-line description of the command
|
#
|
public
|
setName(string[] $name): void
Called immediately after instantiation by a CliApplicationInterface
Called immediately after instantiation by a CliApplicationInterface
Throws
Implemented by
|
#
|
public
|
getSynopsis(?CliHelpStyleInterface $style = null): string
Get a one-line summary of the command's options
Get a one-line summary of the command's options
Returns a space-delimited string that includes the name of the command,
and the name used to run the script.
Implemented by
|
#
|
public
|
getHelp(?CliHelpStyleInterface $style = null): array<CliHelpSectionName::*|string, string>
Get a detailed explanation of the command
Get a detailed explanation of the command
Returns
An array that maps
help section names to content.
Implemented by
|
#
|