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

AvailableMigration   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 22
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

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