FileBuilder.php 493 B

12345678910111213141516171819
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Generator;
  4. use DateTimeInterface;
  5. use Doctrine\Migrations\Query\Query;
  6. /**
  7. * The ConcatenationFileBuilder class is responsible for building a migration SQL file from an array of queries per version.
  8. *
  9. * @internal
  10. */
  11. interface FileBuilder
  12. {
  13. /** @param array<string,Query[]> $queriesByVersion */
  14. public function buildMigrationFile(array $queriesByVersion, string $direction, ?DateTimeInterface $now = null): string;
  15. }