caisse-bliss/vendor/doctrine/migrations/lib/Doctrine/Migrations/Metadata/AvailableMigration.php

36 lines
740 B
PHP
Raw Normal View History

2023-06-19 12:13:30 +02:00
<?php
declare(strict_types=1);
namespace Doctrine\Migrations\Metadata;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\Migrations\Version\Version;
/**
* Available migrations may or may not be already executed
* The migration might be already executed or not.
*/
final class AvailableMigration
{
private Version $version;
private AbstractMigration $migration;
public function __construct(Version $version, AbstractMigration $migration)
{
$this->version = $version;
$this->migration = $migration;
}
public function getVersion(): Version
{
return $this->version;
}
public function getMigration(): AbstractMigration
{
return $this->migration;
}
}