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

MigrationsVersionEventArgs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
ccs 4
cts 6
cp 0.6667
rs 10
c 1
b 0
f 0

2 Methods

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