MigrationFinder.php 544 B

12345678910111213141516171819
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Finder;
  4. /**
  5. * The MigrationFinder interface defines the interface used for finding migrations in a given directory and namespace.
  6. */
  7. interface MigrationFinder
  8. {
  9. /**
  10. * @param string $directory The directory which the finder should search
  11. * @param string|null $namespace If not null only classes in this namespace will be returned
  12. *
  13. * @return string[]
  14. */
  15. public function findMigrations(string $directory, ?string $namespace = null): array;
  16. }