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

MigrationsVersionEventArgs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getVersion() 0 3 1
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