QueryWriter.php 443 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations;
  4. use Doctrine\Migrations\Query\Query;
  5. /**
  6. * The QueryWriter defines the interface used for writing migration SQL queries to a file on disk.
  7. *
  8. * @internal
  9. */
  10. interface QueryWriter
  11. {
  12. /**
  13. * @param array<string,Query[]> $queriesByVersion
  14. */
  15. public function write(
  16. string $path,
  17. string $direction,
  18. array $queriesByVersion
  19. ): bool;
  20. }