class GenerateMigrationCommand extends AbstractCommand

Properties

protected InputInterface $input from AbstractCommand
protected OutputInterface $output from AbstractCommand
protected MigrationCreator $creator

Methods

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

fire()

Fire the command.

bool
hasOption(string $name)

Did the user pass the given option?

info(string $message)

Send an info message to the user.

error(string $message)

Send an error or warning message to the user.

__construct(MigrationCreator $creator)

No description

configure()

{@inheritdoc}

string
writeMigration(string $name, string $extension, string $table, bool $create)

Write the migration file to disk.

Details

protected execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

protected fire()

Fire the command.

protected bool hasOption(string $name)

Did the user pass the given option?

Parameters

string $name

Return Value

bool

protected info(string $message)

Send an info message to the user.

Parameters

string $message

protected error(string $message)

Send an error or warning message to the user.

If possible, this will send the message via STDERR.

Parameters

string $message

__construct(MigrationCreator $creator)

Parameters

MigrationCreator $creator

protected configure()

{@inheritdoc}

protected string writeMigration(string $name, string $extension, string $table, bool $create)

Write the migration file to disk.

Parameters

string $name
string $extension
string $table
bool $create

Return Value

string