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