LoadTest3BundleData2::setLoadedVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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