class GenerateMigrationCommand extends AbstractCommand

Properties

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

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>

__construct(MigrationCreator $creator)

No description

configure()

<p>{@inheritdoc}</p>

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

<p>Write the migration file to disk.</p>

Details

protected execute(InputInterface $input, OutputInterface $output)

<p>{@inheritdoc}</p>

Parameters

InputInterface $input
OutputInterface $output

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

__construct(MigrationCreator $creator)

Parameters

MigrationCreator $creator

protected configure()

<p>{@inheritdoc}</p>

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

<p>Write the migration file to disk.</p>

Parameters

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

Return Value

string