1 | <?php |
||
6 | class Config implements ConfigInterface |
||
7 | { |
||
8 | const DEFAULT_CONFIGURATION_FILENAME = 'default.json'; |
||
9 | |||
10 | protected $filePath; |
||
11 | protected $name; |
||
12 | protected $hostname; |
||
13 | protected $port; |
||
14 | protected $proxyHost; |
||
15 | protected $proxyPort; |
||
16 | protected $buildPath; |
||
17 | protected $tmpPath; |
||
18 | protected $logsPath; |
||
19 | protected $binaries = []; |
||
20 | |||
21 | public function toArray() |
||
25 | |||
26 | public function toJson() |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public static function getAllProperties() |
||
48 | |||
49 | public function setFilePath($filePath) |
||
54 | |||
55 | public function getFilePath() |
||
59 | |||
60 | /** |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function getName() |
||
67 | |||
68 | /** |
||
69 | * @param mixed $name |
||
70 | * @return Config |
||
71 | */ |
||
72 | public function setName($name) |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getHostname() |
||
85 | |||
86 | /** |
||
87 | * @param string $hostname |
||
88 | * @return Config |
||
89 | */ |
||
90 | public function setHostname($hostname) |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getPort() |
||
103 | |||
104 | /** |
||
105 | * @param int $port |
||
106 | * @return Config |
||
107 | */ |
||
108 | public function setPort($port) |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getProxyHost() |
||
121 | |||
122 | /** |
||
123 | * @param string $proxyHost |
||
124 | * @return Config |
||
125 | */ |
||
126 | public function setProxyHost($proxyHost) |
||
131 | |||
132 | /** |
||
133 | * @return int |
||
134 | */ |
||
135 | public function getProxyPort() |
||
139 | |||
140 | /** |
||
141 | * @param int $proxyPort |
||
142 | * @return Config |
||
143 | */ |
||
144 | public function setProxyPort($proxyPort) |
||
149 | |||
150 | /** |
||
151 | * @return string |
||
152 | */ |
||
153 | public function getBuildPath() |
||
157 | |||
158 | /** |
||
159 | * @param string $buildPath |
||
160 | * @return Config |
||
161 | */ |
||
162 | public function setBuildPath($buildPath) |
||
167 | |||
168 | /** |
||
169 | * @return mixed |
||
170 | */ |
||
171 | public function getTmpPath() |
||
175 | |||
176 | /** |
||
177 | * @param mixed $tmpPath |
||
178 | * @return Config |
||
179 | */ |
||
180 | public function setTmpPath($tmpPath) |
||
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | public function getLogsPath() |
||
193 | |||
194 | /** |
||
195 | * @param string $logsPath |
||
196 | * @return Config |
||
197 | */ |
||
198 | public function setLogsPath($logsPath) |
||
203 | |||
204 | public function setBinaries(array $binaries) |
||
208 | |||
209 | public function getBinaries() |
||
213 | |||
214 | public function setBinary($binaryId, Binary $binaryInfo) |
||
218 | |||
219 | public function getBinary($binaryName) |
||
223 | } |