TestExtension   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 26
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setDatabasePlatform() 0 4 1
A getDatabasePlatform() 0 4 1
A setNameGenerator() 0 4 1
A getNameGenerator() 0 4 1
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Migration\Fixtures\Extension;
4
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
use RDV\Bundle\MigrationBundle\Migration\Extension\DatabasePlatformAwareInterface;
7
use RDV\Bundle\MigrationBundle\Migration\Extension\NameGeneratorAwareInterface;
8
use RDV\Bundle\MigrationBundle\Tools\DbIdentifierNameGenerator;
9
10
class TestExtension implements DatabasePlatformAwareInterface, NameGeneratorAwareInterface
11
{
12
    protected $platform;
13
14
    protected $nameGenerator;
15
16
    public function setDatabasePlatform(AbstractPlatform $platform)
17
    {
18
        $this->platform = $platform;
19
    }
20
21
    public function getDatabasePlatform()
22
    {
23
        return $this->platform;
24
    }
25
26
    public function setNameGenerator(DbIdentifierNameGenerator $nameGenerator)
27
    {
28
        $this->nameGenerator = $nameGenerator;
29
    }
30
31
    public function getNameGenerator()
32
    {
33
        return $this->nameGenerator;
34
    }
35
}
36