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

MigrationsVersionEventArgs::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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