AliasResolver.php 786 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Version;
  4. /**
  5. * The DefaultAliasResolver class is responsible for resolving aliases like first, current, etc. to the actual version number.
  6. *
  7. * @internal
  8. */
  9. interface AliasResolver
  10. {
  11. /**
  12. * Returns the version number from an alias.
  13. *
  14. * Supported aliases are:
  15. *
  16. * - first: The very first version before any migrations have been run.
  17. * - current: The current version.
  18. * - prev: The version prior to the current version.
  19. * - next: The version following the current version.
  20. * - latest: The latest available version.
  21. *
  22. * If an existing version number is specified, it is returned verbatim.
  23. */
  24. public function resolveVersionAlias(string $alias): Version;
  25. }