PHP Class Crunz\Console\Command\TaskGeneratorCommand

Inheritance: extends Command, use trait Crunz\Configuration\Configurable
Exibir arquivo Open project: lavary/crunz

Protected Properties

Property Type Description
$defaults array Default option values
$stub string Stub content

Protected Methods

Method 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 method

Ask a question
protected ask ( $question ) : string
return string

configure() protected method

Configures the current command
protected configure ( )

execute() protected method

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
return null | integer null or 0 if everything went fine, or an error code

getStub() protected method

Get the task stub
protected getStub ( ) : string
return string

outputFile() protected method

Populate the output filename
protected outputFile ( ) : string
return string

outputPath() protected method

Return the output path
protected outputPath ( ) : string
return string

replaceCommand() protected method

Replace command
protected replaceCommand ( ) : void
return void

replaceConstraint() protected method

Replace constraint
protected replaceConstraint ( ) : void
return void

replaceDescription() protected method

Replace description
protected replaceDescription ( ) : void
return void

replaceFrequency() protected method

Replace frequency
protected replaceFrequency ( ) : void
return void

replacePath() protected method

Replace path
protected replacePath ( ) : void
return void

save() protected method

Save the generate task skeleton into a file
protected save ( ) : boolean
return boolean

type() protected method

Get the task type
protected type ( ) : string
return string

Property Details

$defaults protected_oe property

Default option values
protected array $defaults
return array

$stub protected_oe property

Stub content
protected string $stub
return string