1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the composer-changelogs project. |
5
|
|
|
* |
6
|
|
|
* (c) Loïck Piera <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Pyrech\ComposerChangelogs\Config; |
13
|
|
|
|
14
|
|
|
class Config |
15
|
|
|
{ |
16
|
|
|
/** @var string */ |
17
|
|
|
private $commitAuto; |
18
|
|
|
|
19
|
|
|
/** @var string|null */ |
20
|
|
|
private $commitBinFile; |
21
|
|
|
|
22
|
|
|
/** @var string */ |
23
|
|
|
private $commitMessage; |
24
|
|
|
|
25
|
|
|
/** @var string[] */ |
26
|
|
|
private $gitlabHosts; |
27
|
|
|
|
28
|
|
|
/** @var int */ |
29
|
|
|
private $postUpdatePriority; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @param string $commitAuto |
33
|
|
|
* @param string|null $commitBinFile |
34
|
26 |
|
* @param string $commitMessage |
35
|
|
|
* @param string[] $gitlabHosts |
36
|
26 |
|
* @param int $postUpdatePriority |
37
|
26 |
|
*/ |
38
|
26 |
|
public function __construct($commitAuto, $commitBinFile, $commitMessage, array $gitlabHosts, $postUpdatePriority) |
39
|
26 |
|
{ |
40
|
26 |
|
$this->commitAuto = $commitAuto; |
41
|
|
|
$this->commitBinFile = $commitBinFile; |
42
|
|
|
$this->commitMessage = $commitMessage; |
43
|
|
|
$this->gitlabHosts = $gitlabHosts; |
44
|
|
|
$this->postUpdatePriority = $postUpdatePriority; |
45
|
24 |
|
} |
46
|
|
|
|
47
|
24 |
|
/** |
48
|
|
|
* @return string |
49
|
|
|
*/ |
50
|
|
|
public function getCommitAuto() |
51
|
|
|
{ |
52
|
|
|
return $this->commitAuto; |
53
|
20 |
|
} |
54
|
|
|
|
55
|
20 |
|
/** |
56
|
|
|
* @return string|null |
57
|
|
|
*/ |
58
|
|
|
public function getCommitBinFile() |
59
|
|
|
{ |
60
|
|
|
return $this->commitBinFile; |
61
|
6 |
|
} |
62
|
|
|
|
63
|
6 |
|
/** |
64
|
|
|
* @return string |
65
|
|
|
*/ |
66
|
|
|
public function getCommitMessage() |
67
|
|
|
{ |
68
|
|
|
return $this->commitMessage; |
69
|
26 |
|
} |
70
|
|
|
|
71
|
26 |
|
/** |
72
|
|
|
* @return string[] |
73
|
|
|
*/ |
74
|
|
|
public function getGitlabHosts() |
75
|
|
|
{ |
76
|
|
|
return $this->gitlabHosts; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return int |
81
|
|
|
*/ |
82
|
|
|
public function getPostUpdatePriority() |
83
|
|
|
{ |
84
|
|
|
return $this->postUpdatePriority; |
85
|
|
|
} |
86
|
|
|
} |
87
|
|
|
|