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

WriteConfigurationRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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