Environment::getWorkDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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
}