Test Failed
Pull Request — master (#10)
by Yo
02:35
created

UpdateConfigurationRequest::getNewConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Yoanm\ComposerConfigManager\Application;
3
4
use Yoanm\ComposerConfigManager\Domain\Model\Configuration;
5
6
class UpdateConfigurationRequest
7
{
8
    /** @var string */
9
    private $destinationFolder;
10
    /** @var Configuration */
11
    private $newConfiguration;
12
    /** @var Configuration */
13
    private $baseConfiguration;
14
15
    /**
16
     * @param Configuration $baseConfiguration
17
     * @param Configuration $newConfiguration
18
     * @param string        $destinationFolder
19
     */
20
    public function __construct(
21
        Configuration $baseConfiguration,
22
        Configuration $newConfiguration,
23
        $destinationFolder
24
    ) {
25
        $this->baseConfiguration = $baseConfiguration;
26
        $this->newConfiguration = $newConfiguration;
27
        $this->destinationFolder = $destinationFolder;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getDestinationFolder()
34
    {
35
        return $this->destinationFolder;
36
    }
37
38
    /**
39
     * @return Configuration
40
     */
41
    public function getNewConfiguration()
42
    {
43
        return $this->newConfiguration;
44
    }
45
46
    /**
47
     * @return Configuration
48
     */
49
    public function getBaseConfiguration()
50
    {
51
        return $this->baseConfiguration;
52
    }
53
}
54