123456789101112131415161718192021222324252627 |
- <?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
- {
- /** @var Schema */
- private $toSchema;
- public function __construct(Schema $schema)
- {
- $this->toSchema = $schema;
- }
- public function createSchema(): Schema
- {
- return $this->toSchema;
- }
- }
|