1 | <?php |
||
8 | class PhingOptions extends AbstractOptions |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string Path to buildfile |
||
13 | */ |
||
14 | private $buildFile; |
||
15 | |||
16 | /** |
||
17 | * @var string (optional) Class which is to perform logging |
||
18 | */ |
||
19 | private $logger; |
||
20 | |||
21 | /** |
||
22 | * @var string (optional) Path to file for logging |
||
23 | */ |
||
24 | private $logFile; |
||
25 | |||
26 | /** |
||
27 | * @var string (optional) Path to file containing all properties |
||
28 | */ |
||
29 | private $propertyFile; |
||
30 | |||
31 | /** |
||
32 | * @var Parameters Container of key/values send as properties to phing |
||
33 | */ |
||
34 | private $properties; |
||
35 | |||
36 | /** |
||
37 | * @var string (optional) class to use to handle user input |
||
38 | */ |
||
39 | private $inputHandler; |
||
40 | |||
41 | /** |
||
42 | * @var boolean Show target descriptions during build |
||
43 | */ |
||
44 | private $longTargets = false; |
||
45 | |||
46 | /** |
||
47 | * @var boolean Lists available targets in this project |
||
48 | */ |
||
49 | private $list = false; |
||
50 | |||
51 | /** |
||
52 | * @var string (optional) Search for a file towards the root of the filesystem and use it as buildfile |
||
53 | */ |
||
54 | private $find; |
||
55 | |||
56 | /** |
||
57 | * @var bool Be extra quiet |
||
58 | */ |
||
59 | private $quiet = false; |
||
60 | |||
61 | /** |
||
62 | * @var bool Print debugging information |
||
63 | */ |
||
64 | private $debug = false; |
||
65 | |||
66 | /** |
||
67 | * @var bool Be extra verbose |
||
68 | */ |
||
69 | private $verbose = false; |
||
70 | |||
71 | /** |
||
72 | * @param array $options |
||
73 | */ |
||
74 | 18 | public function __construct(array $options = null) |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 13 | public function getBuildFile() |
|
88 | |||
89 | /** |
||
90 | * @param string $buildFile |
||
91 | */ |
||
92 | 3 | public function setBuildFile($buildFile) |
|
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | 13 | public function getLogger() |
|
104 | |||
105 | /** |
||
106 | * @param string $logger |
||
107 | */ |
||
108 | 1 | public function setLogger($logger) |
|
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | 13 | public function getLogFile() |
|
120 | |||
121 | /** |
||
122 | * @param string $logFile |
||
123 | */ |
||
124 | 1 | public function setLogFile($logFile) |
|
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | 13 | public function getPropertyFile() |
|
136 | |||
137 | /** |
||
138 | * @param string $propertyFile |
||
139 | */ |
||
140 | 1 | public function setPropertyFile($propertyFile) |
|
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | 13 | public function getInputHandler() |
|
152 | |||
153 | /** |
||
154 | * @param string $inputHandler |
||
155 | */ |
||
156 | 1 | public function setInputHandler($inputHandler) |
|
160 | |||
161 | /** |
||
162 | * @return array |
||
163 | */ |
||
164 | 13 | public function getProperties() |
|
168 | |||
169 | /** |
||
170 | * @param array $properties |
||
171 | */ |
||
172 | 1 | public function setProperties($properties) |
|
177 | |||
178 | /** |
||
179 | * @return boolean |
||
180 | */ |
||
181 | 13 | public function isList() |
|
185 | |||
186 | /** |
||
187 | * @param boolean $list |
||
188 | */ |
||
189 | 1 | public function setList($list) |
|
193 | |||
194 | /** |
||
195 | * @return boolean |
||
196 | */ |
||
197 | 13 | public function isLongTargets() |
|
201 | |||
202 | /** |
||
203 | * @param boolean $longTargets |
||
204 | */ |
||
205 | 1 | public function setLongTargets($longTargets) |
|
209 | |||
210 | /** |
||
211 | * @return string |
||
212 | */ |
||
213 | 13 | public function getFind() |
|
217 | |||
218 | /** |
||
219 | * @param string $find |
||
220 | */ |
||
221 | 1 | public function setFind($find) |
|
225 | |||
226 | /** |
||
227 | * @return boolean |
||
228 | */ |
||
229 | 13 | public function isQuiet() |
|
233 | |||
234 | /** |
||
235 | * @param boolean $quiet |
||
236 | */ |
||
237 | 1 | public function setQuiet($quiet) |
|
241 | |||
242 | /** |
||
243 | * @return boolean |
||
244 | */ |
||
245 | 13 | public function isDebug() |
|
249 | |||
250 | /** |
||
251 | * @param boolean $debug |
||
252 | */ |
||
253 | 1 | public function setDebug($debug) |
|
257 | |||
258 | /** |
||
259 | * @return boolean |
||
260 | */ |
||
261 | 13 | public function isVerbose() |
|
265 | |||
266 | /** |
||
267 | * @param boolean $verbose |
||
268 | */ |
||
269 | 2 | public function setVerbose($verbose) |
|
273 | |||
274 | /** |
||
275 | * Construct an array with arguments to configure the phing executable |
||
276 | * |
||
277 | * @return array |
||
278 | */ |
||
279 | 13 | public function toArgumentsArray() |
|
339 | } |
||
340 |