welcome back to dyb-tech
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Migrations\Provider;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
|
||||
/**
|
||||
* The StubSchemaProvider takes a Doctrine\DBAL\Schema\Schema instance through the constructor and returns it
|
||||
* from the createSchema() method.
|
||||
*/
|
||||
final class StubSchemaProvider implements SchemaProvider
|
||||
{
|
||||
private Schema $toSchema;
|
||||
|
||||
public function __construct(Schema $schema)
|
||||
{
|
||||
$this->toSchema = $schema;
|
||||
}
|
||||
|
||||
public function createSchema(): Schema
|
||||
{
|
||||
return $this->toSchema;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user