Completed
Push — master ( e57500...6b1ea1 )
by Michael
05:04
created

Deployment::getPreviousVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ParityBit\DeploymentNotifier;
4
5
class Deployment
6
{
7
    protected $environment;
8
    protected $previousVersion;
9
    protected $currentVersion;
10
    protected $changes = null;
11
    protected $server;
12
13
    public function __construct(
14
        Environment $environment,
15
        Version $previousVersion,
16
        Version $currentVersion,
17
        Server $server)
18
    {
19
        $this->environment = $environment;
20
        $this->previousVersion = $previousVersion;
21
        $this->currentVersion = $currentVersion;
22
        $this->server = $server;
23
    }
24
25
    public function getEnvironment()
26
    {
27
        return $this->environment;
28
    }
29
30
    public function getPreviousVersion()
31
    {
32
        return $this->previousVersion;
33
    }
34
35
    public function getCurrentVersion()
36
    {
37
        return $this->currentVersion;
38
    }
39
40
    public function getServer()
41
    {
42
        return $this->server;
43
    }
44
45
    public function getChanges()
46
    {
47
48
    }
49
}
50