class Executor implements ExecutorInterface (View source)

The Executor class is responsible for executing a single migration version.

Methods

__construct(Configuration $configuration, Connection $connection, SchemaDiffProviderInterface $schemaProvider, OutputWriter $outputWriter, ParameterFormatterInterface $parameterFormatter, Stopwatch $stopwatch)

No description

string[]
getSql()

No description

mixed[]
getParams()

No description

mixed[]
getTypes()

No description

addSql(string $sql, array $params = [], array $types = [])

No description

execute(Version $version, AbstractMigration $migration, string $direction, MigratorConfiguration|null $migratorConfiguration = null)

No description

Details

__construct(Configuration $configuration, Connection $connection, SchemaDiffProviderInterface $schemaProvider, OutputWriter $outputWriter, ParameterFormatterInterface $parameterFormatter, Stopwatch $stopwatch)

Parameters

Configuration $configuration
Connection $connection
SchemaDiffProviderInterface $schemaProvider
OutputWriter $outputWriter
ParameterFormatterInterface $parameterFormatter
Stopwatch $stopwatch

string[] getSql()

Return Value

string[]

mixed[] getParams()

Return Value

mixed[]

mixed[] getTypes()

Return Value

mixed[]

addSql(string $sql, array $params = [], array $types = [])

Parameters

string $sql
array $params
array $types

execute(Version $version, AbstractMigration $migration, string $direction, MigratorConfiguration|null $migratorConfiguration = null)

Parameters

Version $version
AbstractMigration $migration
string $direction
MigratorConfiguration|null $migratorConfiguration