welcome back to dyb-tech
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
<?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
|
||||
{
|
||||
public function __construct(
|
||||
private readonly Version $version,
|
||||
private readonly AbstractMigration $migration,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getVersion(): Version
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
public function getMigration(): AbstractMigration
|
||||
{
|
||||
return $this->migration;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user