Test1BundleInstallation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMigrationVersion() 0 4 1
A up() 0 4 1
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Fixture\TestPackage\Test1Bundle\Migrations\Schema;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use RDV\Bundle\MigrationBundle\Migration\Installation;
7
use RDV\Bundle\MigrationBundle\Migration\QueryBag;
8
9
class Test1BundleInstallation implements Installation
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    public function getMigrationVersion()
15
    {
16
        return "v1_0";
17
    }
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function up(Schema $schema, QueryBag $queries)
23
    {
24
        $queries->addQuery('CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)');
25
    }
26
}
27