PHP Class Crunz\Console\Command\TaskGeneratorCommand

Inheritance: extends Command, use trait Crunz\Configuration\Configurable
Afficher le fichier Open project: lavary/crunz

Protected Properties

Свойство Type Description
$defaults array Default option values
$stub string Stub content

Méthodes protégées

Méthode Description
ask ( $question ) : string Ask a question
configure ( ) Configures the current command
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer Executes the current command
getStub ( ) : string Get the task stub
outputFile ( ) : string Populate the output filename
outputPath ( ) : string Return the output path
replaceCommand ( ) : void Replace command
replaceConstraint ( ) : void Replace constraint
replaceDescription ( ) : void Replace description
replaceFrequency ( ) : void Replace frequency
replacePath ( ) : void Replace path
save ( ) : boolean Save the generate task skeleton into a file
type ( ) : string Get the task type

Method Details

ask() protected méthode

Ask a question
protected ask ( $question ) : string
Résultat string

configure() protected méthode

Configures the current command
protected configure ( )

execute() protected méthode

Executes the current command
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat null | integer null or 0 if everything went fine, or an error code

getStub() protected méthode

Get the task stub
protected getStub ( ) : string
Résultat string

outputFile() protected méthode

Populate the output filename
protected outputFile ( ) : string
Résultat string

outputPath() protected méthode

Return the output path
protected outputPath ( ) : string
Résultat string

replaceCommand() protected méthode

Replace command
protected replaceCommand ( ) : void
Résultat void

replaceConstraint() protected méthode

Replace constraint
protected replaceConstraint ( ) : void
Résultat void

replaceDescription() protected méthode

Replace description
protected replaceDescription ( ) : void
Résultat void

replaceFrequency() protected méthode

Replace frequency
protected replaceFrequency ( ) : void
Résultat void

replacePath() protected méthode

Replace path
protected replacePath ( ) : void
Résultat void

save() protected méthode

Save the generate task skeleton into a file
protected save ( ) : boolean
Résultat boolean

type() protected méthode

Get the task type
protected type ( ) : string
Résultat string

Property Details

$defaults protected_oe property

Default option values
protected array $defaults
Résultat array

$stub protected_oe property

Stub content
protected string $stub
Résultat string