ServiceState::getProductionVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine\Aent\Event\Service\Model;
4
5
use TheAentMachine\Service\Service;
6
7
final class ServiceState
8
{
9
    /** @var Service|null */
10
    private $developmentVersion;
11
12
    /** @var Service|null */
13
    private $testVersion;
14
15
    /** @var Service|null */
16
    private $productionVersion;
17
18
    /**
19
     * ServiceState constructor.
20
     * @param null|Service $developmentVersion
21
     * @param null|Service $testVersion
22
     * @param null|Service $productionVersion
23
     */
24
    public function __construct(?Service $developmentVersion, ?Service $testVersion, ?Service $productionVersion)
25
    {
26
        $this->developmentVersion = $developmentVersion;
27
        $this->testVersion = $testVersion;
28
        $this->productionVersion = $productionVersion;
29
    }
30
31
    /**
32
     * @return null|Service
33
     */
34
    public function getDevelopmentVersion(): ?Service
35
    {
36
        return $this->developmentVersion;
37
    }
38
39
    /**
40
     * @return null|Service
41
     */
42
    public function getTestVersion(): ?Service
43
    {
44
        return $this->testVersion;
45
    }
46
47
    /**
48
     * @return null|Service
49
     */
50
    public function getProductionVersion(): ?Service
51
    {
52
        return $this->productionVersion;
53
    }
54
}
55