Completed
Push — master ( 882947...a4a53d )
by Mike
13:52 queued 13:46
created

MigrationsVersionEventArgs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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