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