caisse-bliss/vendor/doctrine/migrations/lib/Doctrine/Migrations/Provider/StubSchemaProvider.php

27 lines
536 B
PHP
Raw Normal View History

2023-06-19 12:13:30 +02:00
<?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;
}
}