|
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
|
|
|
* @param string $commitMessage |
|
35
|
|
|
* @param string[] $gitlabHosts |
|
36
|
|
|
* @param int $postUpdatePriority |
|
37
|
|
|
*/ |
|
38
|
30 |
|
public function __construct($commitAuto, $commitBinFile, $commitMessage, array $gitlabHosts, $postUpdatePriority) |
|
39
|
|
|
{ |
|
40
|
30 |
|
$this->commitAuto = $commitAuto; |
|
41
|
30 |
|
$this->commitBinFile = $commitBinFile; |
|
42
|
30 |
|
$this->commitMessage = $commitMessage; |
|
43
|
30 |
|
$this->gitlabHosts = $gitlabHosts; |
|
44
|
30 |
|
$this->postUpdatePriority = $postUpdatePriority; |
|
45
|
30 |
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @return string |
|
49
|
|
|
*/ |
|
50
|
26 |
|
public function getCommitAuto() |
|
51
|
|
|
{ |
|
52
|
26 |
|
return $this->commitAuto; |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return string|null |
|
57
|
|
|
*/ |
|
58
|
22 |
|
public function getCommitBinFile() |
|
59
|
|
|
{ |
|
60
|
22 |
|
return $this->commitBinFile; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @return string |
|
65
|
|
|
*/ |
|
66
|
6 |
|
public function getCommitMessage() |
|
67
|
|
|
{ |
|
68
|
6 |
|
return $this->commitMessage; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @return string[] |
|
73
|
|
|
*/ |
|
74
|
30 |
|
public function getGitlabHosts() |
|
75
|
|
|
{ |
|
76
|
30 |
|
return $this->gitlabHosts; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @return int |
|
81
|
|
|
*/ |
|
82
|
30 |
|
public function getPostUpdatePriority() |
|
83
|
|
|
{ |
|
84
|
30 |
|
return $this->postUpdatePriority; |
|
85
|
|
|
} |
|
86
|
|
|
} |
|
87
|
|
|
|