1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CyberLine\SystemdState\Types; |
4
|
|
|
|
5
|
|
|
class Path extends AbstractType |
6
|
|
|
{ |
7
|
|
|
protected $After = []; |
8
|
|
|
|
9
|
|
|
protected $Conflicts = []; |
10
|
|
|
|
11
|
|
|
protected $DirectoryMode; |
12
|
|
|
|
13
|
|
|
protected $DirectoryNotEmpty; |
14
|
|
|
|
15
|
|
|
protected $Documentation = []; |
16
|
|
|
|
17
|
|
|
protected $FragmentPath; |
18
|
|
|
|
19
|
|
|
protected $MakeDirectory; |
20
|
|
|
|
21
|
|
|
protected $PathChanged; |
22
|
|
|
|
23
|
|
|
protected $Requires = []; |
24
|
|
|
|
25
|
|
|
protected $RequiresMountsFor = []; |
26
|
|
|
|
27
|
|
|
protected $Result; |
28
|
|
|
|
29
|
|
|
protected $Triggers = []; |
30
|
|
|
|
31
|
|
|
protected $Unit; |
32
|
|
|
|
33
|
|
|
protected $UnitFilePreset; |
34
|
|
|
|
35
|
|
|
protected $UnitFileState; |
36
|
|
|
|
37
|
|
|
protected $WantedBy = []; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @return array |
41
|
|
|
*/ |
42
|
|
|
public function getAfter(): array |
43
|
|
|
{ |
44
|
|
|
return $this->After; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @param array $After |
49
|
|
|
* @return Path |
50
|
|
|
*/ |
51
|
|
|
public function setAfter(array $After): Path |
52
|
|
|
{ |
53
|
|
|
$this->After = $After; |
54
|
|
|
return $this; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @return array |
59
|
|
|
*/ |
60
|
|
|
public function getConflicts(): array |
61
|
|
|
{ |
62
|
|
|
return $this->Conflicts; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @param array $Conflicts |
67
|
|
|
* @return Path |
68
|
|
|
*/ |
69
|
|
|
public function setConflicts(array $Conflicts): Path |
70
|
|
|
{ |
71
|
|
|
$this->Conflicts = $Conflicts; |
72
|
|
|
return $this; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @return mixed |
77
|
|
|
*/ |
78
|
|
|
public function getDirectoryMode() |
79
|
|
|
{ |
80
|
|
|
return $this->DirectoryMode; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @param mixed $DirectoryMode |
85
|
|
|
* @return Path |
86
|
|
|
*/ |
87
|
|
|
public function setDirectoryMode($DirectoryMode) |
88
|
|
|
{ |
89
|
|
|
$this->DirectoryMode = $DirectoryMode; |
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @return mixed |
95
|
|
|
*/ |
96
|
|
|
public function getDirectoryNotEmpty() |
97
|
|
|
{ |
98
|
|
|
return $this->DirectoryNotEmpty; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @param mixed $DirectoryNotEmpty |
103
|
|
|
* @return Path |
104
|
|
|
*/ |
105
|
|
|
public function setDirectoryNotEmpty($DirectoryNotEmpty) |
106
|
|
|
{ |
107
|
|
|
$this->DirectoryNotEmpty = $DirectoryNotEmpty; |
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return array |
113
|
|
|
*/ |
114
|
|
|
public function getDocumentation(): array |
115
|
|
|
{ |
116
|
|
|
return $this->Documentation; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param array $Documentation |
121
|
|
|
* @return Path |
122
|
|
|
*/ |
123
|
|
|
public function setDocumentation(array $Documentation): Path |
124
|
|
|
{ |
125
|
|
|
$this->Documentation = $Documentation; |
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @return mixed |
131
|
|
|
*/ |
132
|
|
|
public function getFragmentPath() |
133
|
|
|
{ |
134
|
|
|
return $this->FragmentPath; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param mixed $FragmentPath |
139
|
|
|
* @return Path |
140
|
|
|
*/ |
141
|
|
|
public function setFragmentPath($FragmentPath) |
142
|
|
|
{ |
143
|
|
|
$this->FragmentPath = $FragmentPath; |
144
|
|
|
return $this; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @return mixed |
149
|
|
|
*/ |
150
|
|
|
public function getMakeDirectory() |
151
|
|
|
{ |
152
|
|
|
return $this->MakeDirectory; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @param mixed $MakeDirectory |
157
|
|
|
* @return Path |
158
|
|
|
*/ |
159
|
|
|
public function setMakeDirectory($MakeDirectory) |
160
|
|
|
{ |
161
|
|
|
$this->MakeDirectory = $MakeDirectory; |
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return mixed |
167
|
|
|
*/ |
168
|
|
|
public function getPathChanged() |
169
|
|
|
{ |
170
|
|
|
return $this->PathChanged; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @param mixed $PathChanged |
175
|
|
|
* @return Path |
176
|
|
|
*/ |
177
|
|
|
public function setPathChanged($PathChanged) |
178
|
|
|
{ |
179
|
|
|
$this->PathChanged = $PathChanged; |
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @return array |
185
|
|
|
*/ |
186
|
|
|
public function getRequires(): array |
187
|
|
|
{ |
188
|
|
|
return $this->Requires; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param array $Requires |
193
|
|
|
* @return Path |
194
|
|
|
*/ |
195
|
|
|
public function setRequires(array $Requires): Path |
196
|
|
|
{ |
197
|
|
|
$this->Requires = $Requires; |
198
|
|
|
return $this; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return array |
203
|
|
|
*/ |
204
|
|
|
public function getRequiresMountsFor(): array |
205
|
|
|
{ |
206
|
|
|
return $this->RequiresMountsFor; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param array $RequiresMountsFor |
211
|
|
|
* @return Path |
212
|
|
|
*/ |
213
|
|
|
public function setRequiresMountsFor(array $RequiresMountsFor): Path |
214
|
|
|
{ |
215
|
|
|
$this->RequiresMountsFor = $RequiresMountsFor; |
216
|
|
|
return $this; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @return mixed |
221
|
|
|
*/ |
222
|
|
|
public function getResult() |
223
|
|
|
{ |
224
|
|
|
return $this->Result; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @param mixed $Result |
229
|
|
|
* @return Path |
230
|
|
|
*/ |
231
|
|
|
public function setResult($Result) |
232
|
|
|
{ |
233
|
|
|
$this->Result = $Result; |
234
|
|
|
return $this; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @return array |
239
|
|
|
*/ |
240
|
|
|
public function getTriggers(): array |
241
|
|
|
{ |
242
|
|
|
return $this->Triggers; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @param array $Triggers |
247
|
|
|
* @return Path |
248
|
|
|
*/ |
249
|
|
|
public function setTriggers(array $Triggers): Path |
250
|
|
|
{ |
251
|
|
|
$this->Triggers = $Triggers; |
252
|
|
|
return $this; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @return mixed |
257
|
|
|
*/ |
258
|
|
|
public function getUnit() |
259
|
|
|
{ |
260
|
|
|
return $this->Unit; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @param mixed $Unit |
265
|
|
|
* @return Path |
266
|
|
|
*/ |
267
|
|
|
public function setUnit($Unit) |
268
|
|
|
{ |
269
|
|
|
$this->Unit = $Unit; |
270
|
|
|
return $this; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @return mixed |
275
|
|
|
*/ |
276
|
|
|
public function getUnitFilePreset() |
277
|
|
|
{ |
278
|
|
|
return $this->UnitFilePreset; |
279
|
|
|
} |
280
|
|
|
|
281
|
|
|
/** |
282
|
|
|
* @param mixed $UnitFilePreset |
283
|
|
|
* @return Path |
284
|
|
|
*/ |
285
|
|
|
public function setUnitFilePreset($UnitFilePreset) |
286
|
|
|
{ |
287
|
|
|
$this->UnitFilePreset = $UnitFilePreset; |
288
|
|
|
return $this; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* @return mixed |
293
|
|
|
*/ |
294
|
|
|
public function getUnitFileState() |
295
|
|
|
{ |
296
|
|
|
return $this->UnitFileState; |
297
|
|
|
} |
298
|
|
|
|
299
|
|
|
/** |
300
|
|
|
* @param mixed $UnitFileState |
301
|
|
|
* @return Path |
302
|
|
|
*/ |
303
|
|
|
public function setUnitFileState($UnitFileState) |
304
|
|
|
{ |
305
|
|
|
$this->UnitFileState = $UnitFileState; |
306
|
|
|
return $this; |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @return array |
311
|
|
|
*/ |
312
|
|
|
public function getWantedBy(): array |
313
|
|
|
{ |
314
|
|
|
return $this->WantedBy; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* @param array $WantedBy |
319
|
|
|
* @return Path |
320
|
|
|
*/ |
321
|
|
|
public function setWantedBy(array $WantedBy): Path |
322
|
|
|
{ |
323
|
|
|
$this->WantedBy = $WantedBy; |
324
|
|
|
return $this; |
325
|
|
|
} |
326
|
|
|
} |
327
|
|
|
|