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

27 lines
536 B
PHP

<?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;
}
}