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

Deployment   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 45
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getEnvironment() 0 4 1
A getPreviousVersion() 0 4 1
A getCurrentVersion() 0 4 1
A getServer() 0 4 1
A getChanges() 0 4 1
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