Failed Conditions
Pull Request — master (#632)
by Michael
02:44
created

MigrationsVersionEventArgs::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Event;
6
7
use Doctrine\Migrations\Configuration\Configuration;
8
use Doctrine\Migrations\Version;
9
10
class MigrationsVersionEventArgs extends MigrationsEventArgs
11
{
12
    /** @var Version */
13
    private $version;
14
15 50
    public function __construct(
16
        Version $version,
17
        Configuration $config,
18
        string $direction,
19
        bool $dryRun
20
    ) {
21 50
        parent::__construct($config, $direction, $dryRun);
22
23 50
        $this->version = $version;
24 50
    }
25
26
    public function getVersion() : Version
27
    {
28
        return $this->version;
29
    }
30
}
31