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

UpdateConfigurationRequest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 48
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getDestinationFolder() 0 4 1
A getNewConfiguration() 0 4 1
A getBaseConfiguration() 0 4 1
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