Completed
Push — master ( 76dc42...e93ba9 )
by Yo
02:39
created

CreateConfigurationRequest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getDestinationFolder() 0 4 1
A getConfiguration() 0 4 1
A getTemplateConfiguration() 0 4 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Application;
3
4
use Yoanm\ComposerConfigManager\Domain\Model\Configuration;
5
6
class CreateConfigurationRequest
7
{
8
    /** @var string */
9
    private $destinationFolder;
10
    /** @var Configuration */
11
    private $configuration;
12
    /** @var Configuration */
13
    private $templateConfiguration;
14
15
    /**
16
     * @param Configuration $configuration
17
     * @param string        $destinationFolder
18
     */
19
    public function __construct(
20
        Configuration $configuration,
21
        $destinationFolder,
22
        Configuration $templateConfiguration = null
23
    ) {
24
        $this->destinationFolder = $destinationFolder;
25
        $this->configuration = $configuration;
26
        $this->templateConfiguration = $templateConfiguration;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getDestinationFolder()
33
    {
34
        return $this->destinationFolder;
35
    }
36
37
    /**
38
     * @return Configuration
39
     */
40
    public function getConfiguration()
41
    {
42
        return $this->configuration;
43
    }
44
45
    /**
46
     * @return Configuration
47
     */
48
    public function getTemplateConfiguration()
49
    {
50
        return $this->templateConfiguration;
51
    }
52
}
53