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

MigrationsVersionEventArgs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 9
ccs 3
cts 3
cp 1
crap 1
rs 9.6666
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