-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRemoteConfig.php
99 lines (82 loc) · 2.02 KB
/
RemoteConfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
namespace DigipolisGent\Robo\Helpers\Util;
class RemoteConfig
{
/**
* The host to connect to.
*
* @var string
*/
protected $host;
/**
* The user to connect with.
*
* @var string
*/
protected $user;
/**
* The path to the private key to connect with.
*
* @var string
*/
protected $privateKeyFile;
/**
* Remote settings as parsed from the `remote` key from properties.yml
*
* @var array
*/
protected $remoteSettings;
/**
* The path to the root of the current release.
*
* @var string
*/
protected $currentProjectRoot;
public function __construct(string $host, string $user, string $privateKeyFile, array $remoteSettings, string $currentProjectRoot)
{
$this->host = $host;
$this->user = $user;
$this->privateKeyFile = $privateKeyFile;
$this->remoteSettings = $remoteSettings;
$this->currentProjectRoot = $currentProjectRoot;
}
public function getHost(): string {
return $this->host;
}
public function getUser(): string
{
return $this->user;
}
public function getPrivateKeyFile(): string
{
return $this->privateKeyFile;
}
public function getRemoteSettings(): array
{
return $this->remoteSettings;
}
public function getCurrentProjectRoot(): string
{
return $this->currentProjectRoot;
}
public function setHost(string $host): void
{
$this->host = $host;
}
public function setUser(string $user): void
{
$this->user = $user;
}
public function setPrivateKeyFile(string $privateKeyFile): void
{
$this->privateKeyFile = $privateKeyFile;
}
public function setRemoteSettings(array $remoteSettings): void
{
$this->remoteSettings = $remoteSettings;
}
public function setCurrentProjectRoot(string $currentProjectRoot): void
{
$this->currentProjectRoot = $currentProjectRoot;
}
}