|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Migration\Fixtures; |
|
4
|
|
|
|
|
5
|
|
|
use Doctrine\DBAL\Schema\Schema; |
|
6
|
|
|
use Doctrine\DBAL\Platforms\AbstractPlatform; |
|
7
|
|
|
use RDV\Bundle\MigrationBundle\Migration\Migration; |
|
8
|
|
|
use RDV\Bundle\MigrationBundle\Migration\QueryBag; |
|
9
|
|
|
use RDV\Bundle\MigrationBundle\Migration\Extension\DatabasePlatformAwareInterface; |
|
10
|
|
|
use RDV\Bundle\MigrationBundle\Migration\Extension\NameGeneratorAwareInterface; |
|
11
|
|
|
use RDV\Bundle\MigrationBundle\Tools\DbIdentifierNameGenerator; |
|
12
|
|
|
use RDV\Bundle\MigrationBundle\Tests\Unit\Migration\Fixtures\Extension\TestExtension; |
|
13
|
|
|
use RDV\Bundle\MigrationBundle\Tests\Unit\Migration\Fixtures\Extension\TestExtensionAwareInterface; |
|
14
|
|
|
|
|
15
|
|
|
class MigrationWithTestExtension implements |
|
16
|
|
|
Migration, |
|
17
|
|
|
TestExtensionAwareInterface, |
|
18
|
|
|
DatabasePlatformAwareInterface, |
|
19
|
|
|
NameGeneratorAwareInterface |
|
20
|
|
|
{ |
|
21
|
|
|
protected $testExtension; |
|
22
|
|
|
|
|
23
|
|
|
protected $platform; |
|
24
|
|
|
|
|
25
|
|
|
protected $nameGenerator; |
|
26
|
|
|
|
|
27
|
|
|
public function setTestExtension(TestExtension $testExtension) |
|
28
|
|
|
{ |
|
29
|
|
|
$this->testExtension = $testExtension; |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
public function getTestExtension() |
|
33
|
|
|
{ |
|
34
|
|
|
return $this->testExtension; |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
public function setDatabasePlatform(AbstractPlatform $platform) |
|
38
|
|
|
{ |
|
39
|
|
|
$this->platform = $platform; |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
public function getDatabasePlatform() |
|
43
|
|
|
{ |
|
44
|
|
|
return $this->platform; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function setNameGenerator(DbIdentifierNameGenerator $nameGenerator) |
|
48
|
|
|
{ |
|
49
|
|
|
$this->nameGenerator = $nameGenerator; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public function getNameGenerator() |
|
53
|
|
|
{ |
|
54
|
|
|
return $this->nameGenerator; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
public function up(Schema $schema, QueryBag $queries) |
|
58
|
|
|
{ |
|
59
|
|
|
} |
|
60
|
|
|
} |
|
61
|
|
|
|