PHP Class Silly\Command\Command

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: mnapoli/silly Class Usage Examples

Public Methods

Method Description
defaults ( array $defaults = [] ) Define default values for the arguments of the command.
descriptions ( string $description, array $argumentAndOptionDescriptions = [] ) Define descriptions for the command and it's arguments/options.

Private Methods

Method Description
setArgumentDescription ( Symfony\Component\Console\Input\InputDefinition $definition, $name, $description )
setOptionDescription ( Symfony\Component\Console\Input\InputDefinition $definition, $name, $description )

Method Details

defaults() public method

Define default values for the arguments of the command.
public defaults ( array $defaults = [] )
$defaults array Default argument values.

descriptions() public method

Define descriptions for the command and it's arguments/options.
public descriptions ( string $description, array $argumentAndOptionDescriptions = [] )
$description string Description of the command.
$argumentAndOptionDescriptions array Descriptions of the arguments and options.