abstract class AbstractCommand extends Command

Properties

protected InputInterface $input
protected OutputInterface $output

Methods

execute(InputInterface $input, OutputInterface $output)

<p>{@inheritdoc}</p>

fire()

<p>Fire the command.</p>

bool
hasOption(string $name)

<p>Did the user pass the given option?</p>

info(string $string)

<p>Send an info string to the user.</p>

Details

protected execute(InputInterface $input, OutputInterface $output)

<p>{@inheritdoc}</p>

Parameters

InputInterface $input
OutputInterface $output

abstract protected fire()

<p>Fire the command.</p>

protected bool hasOption(string $name)

<p>Did the user pass the given option?</p>

Parameters

string $name

Return Value

bool

protected info(string $string)

<p>Send an info string to the user.</p>

Parameters

string $string