LoadTest3BundleData2   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 37
wmc 4
lcom 0
cbo 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 4 1
A setLoadedVersion() 0 4 1
A load() 0 3 1
A getOrder() 0 4 1
1
<?php
2
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Fixture\TestPackage\Test3Bundle\Migrations\Data\ORM;
3
4
use Doctrine\Common\DataFixtures\AbstractFixture;
5
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
6
use Doctrine\Common\Persistence\ObjectManager;
7
8
use RDV\Bundle\MigrationBundle\Fixture\VersionedFixtureInterface;
9
10
class LoadTest3BundleData2 extends AbstractFixture implements
11
    VersionedFixtureInterface,
12
    OrderedFixtureInterface
13
{
14
    public $dbVersion;
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getVersion()
20
    {
21
        return '1.0';
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function setLoadedVersion($version = null)
28
    {
29
        $this->dbVersion = $version;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function load(ObjectManager $manager)
36
    {
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getOrder()
43
    {
44
        return 2;
45
    }
46
}
47