Passed
Push — master ( 80b57f...2460a5 )
by Yo
02:49
created

WriteConfigurationRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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