Environment   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
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 36
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getWorkDir() 0 3 1
A __construct() 0 4 1
A getName() 0 3 1
1
<?php
2
3
4
namespace Deployee\Components\Environment;
5
6
7
class Environment implements EnvironmentInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $name;
13
14
    /**
15
     * @var string
16
     */
17
    private $workDir;
18
19
    /**
20
     * @param string $name
21
     * @param string $workDir
22
     */
23 1
    public function __construct(string $name, string $workDir)
24
    {
25 1
        $this->name = $name;
26 1
        $this->workDir = $workDir;
27 1
    }
28
29
    /**
30
     * @return string
31
     */
32 1
    public function getName(): string
33
    {
34 1
        return $this->name;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 1
    public function getWorkDir(): string
41
    {
42 1
        return $this->workDir;
43
    }
44
}