PHP Class Silly\Command\Command

Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: mnapoli/silly Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

defaults() public méthode

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

descriptions() public méthode

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.