Executor.php 516 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Version;
  4. use Doctrine\Migrations\Metadata\MigrationPlan;
  5. use Doctrine\Migrations\MigratorConfiguration;
  6. use Doctrine\Migrations\Query\Query;
  7. /**
  8. * The Executor defines the interface used for adding sql for a migration and executing that sql.
  9. *
  10. * @internal
  11. */
  12. interface Executor
  13. {
  14. public function addSql(Query $sqlQuery): void;
  15. public function execute(MigrationPlan $plan, MigratorConfiguration $migratorConfiguration): ExecutionResult;
  16. }