Command::getNativeDefinition()

InputDefinition getNativeDefinition() Gets the InputDefinition to be used to create representations of this Command. Can be overridden to provide the original command representation when it would otherwise be changed by merging with the application InputDefinition. This method is not part of public API and should not be used directly. Return Value InputDefinition An InputDefinition instance

Command::getName()

string getName() Returns the command name. Return Value string The command name

Command::getHelperSet()

HelperSet getHelperSet() Gets the helper set. Return Value HelperSet A HelperSet instance

Command::getHelper()

mixed getHelper(string $name) Gets a helper instance by name. Parameters string $name The helper name Return Value mixed The helper value Exceptions LogicException if no HelperSet is defined InvalidArgumentException if the helper is not defined

Command::getHelp()

string getHelp() Returns the help for the command. Return Value string The help for the command

Command::getDescription()

string getDescription() Returns the description for the command. Return Value string The description for the command

Command::getDefinition()

InputDefinition getDefinition() Gets the InputDefinition attached to this Command. Return Value InputDefinition An InputDefinition instance

Command::getApplication()

Application getApplication() Gets the application instance for this command. Return Value Application An Application instance

Command::getAliases()

array getAliases() Returns the aliases for the command. Return Value array An array of aliases for the command

Command::addUsage()

Command addUsage(string $usage) Add a command usage example. Parameters string $usage The usage, it'll be prefixed with the command name Return Value Command The current instance