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
|
|
|
/** @var Configuration */ |
15
|
|
|
private $templateConfiguration; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @param Configuration $baseConfiguration |
19
|
|
|
* @param Configuration $newConfiguration |
20
|
|
|
* @param string $destinationFolder |
21
|
|
|
* @param Configuration|null $templateConfiguration |
22
|
|
|
*/ |
23
|
|
|
public function __construct( |
24
|
|
|
Configuration $baseConfiguration, |
25
|
|
|
Configuration $newConfiguration, |
26
|
|
|
$destinationFolder, |
27
|
|
|
Configuration $templateConfiguration = null |
28
|
|
|
) { |
29
|
|
|
$this->baseConfiguration = $baseConfiguration; |
30
|
|
|
$this->newConfiguration = $newConfiguration; |
31
|
|
|
$this->destinationFolder = $destinationFolder; |
32
|
|
|
$this->templateConfiguration = $templateConfiguration; |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @return string |
37
|
|
|
*/ |
38
|
|
|
public function getDestinationFolder() |
39
|
|
|
{ |
40
|
|
|
return $this->destinationFolder; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @return Configuration |
45
|
|
|
*/ |
46
|
|
|
public function getNewConfiguration() |
47
|
|
|
{ |
48
|
|
|
return $this->newConfiguration; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @return Configuration |
53
|
|
|
*/ |
54
|
|
|
public function getBaseConfiguration() |
55
|
|
|
{ |
56
|
|
|
return $this->baseConfiguration; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @return Configuration |
61
|
|
|
*/ |
62
|
|
|
public function getTemplateConfiguration() |
63
|
|
|
{ |
64
|
|
|
return $this->templateConfiguration; |
65
|
|
|
} |
66
|
|
|
} |
67
|
|
|
|