abstract class AbstractCommand extends Command

Properties

protected InputInterface $input
protected OutputInterface $output

Methods

int
execute(InputInterface $input, OutputInterface $output)

No description

int
fire()

No description

bool
hasOption(string $name)

No description

void
info(string $message)

No description

void
error(string $message)

Send an error or warning message to the user.

Details

protected int execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

abstract protected int fire()

Return Value

int

protected bool hasOption(string $name)

Parameters

string $name

Return Value

bool

protected void info(string $message)

Parameters

string $message

Return Value

void

protected void error(string $message)

Send an error or warning message to the user.

If possible, this will send the message via STDERR.

Parameters

string $message

Return Value

void