Version0_17_0   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A up() 0 4 1
A down() 0 4 1
1
<?php
2
3
namespace App\Migration;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\Migrations\AbstractMigration;
7
use Doctrine\DBAL\Migrations\Version;
8
use Ds\Component\Acl\Migration\Version0_17_0 as Acl;
9
10
/**
11
 * Class Version0_17_0
12
 */
13
final class Version0_17_0 extends AbstractMigration
14
{
15
    /**
16
     * @var \Ds\Component\Acl\Migration\Version0_17_0
17
     */
18
    private $acl;
19
20
    /**
21
     * Constructor
22
     *
23
     * @param \Doctrine\DBAL\Migrations\Version  $version
24
     */
25
    public function __construct(Version $version)
26
    {
27
        parent::__construct($version);
28
        $this->acl = new Acl($version);
29
    }
30
31
    /**
32
     * Up migration
33
     *
34
     * @param \Doctrine\DBAL\Schema\Schema $schema
35
     */
36
    public function up(Schema $schema)
37
    {
38
        $this->acl->up($schema);
39
    }
40
41
    /**
42
     * Down migration
43
     *
44
     * @param \Doctrine\DBAL\Schema\Schema $schema
45
     */
46
    public function down(Schema $schema)
47
    {
48
        $this->acl->down($schema);
49
    }
50
}
51