Passed
Push — master ( 229462...d74785 )
by Andreas
02:20 queued 14s
created

AvailableMigration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Metadata;
6
7
use Doctrine\Migrations\AbstractMigration;
8
use Doctrine\Migrations\Version\Version;
9
10
final class AvailableMigration
11
{
12
    /** @var Version */
13
    private $version;
14
15
    /** @var AbstractMigration */
16
    private $migration;
17
18 79
    public function __construct(Version $version, AbstractMigration $migration)
19
    {
20 79
        $this->version   = $version;
21 79
        $this->migration = $migration;
22 79
    }
23
24 71
    public function getVersion() : Version
25
    {
26 71
        return $this->version;
27
    }
28
29 26
    public function getMigration() : AbstractMigration
30
    {
31 26
        return $this->migration;
32
    }
33
}
34