|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of graze/unicontroller-client. |
|
4
|
|
|
* |
|
5
|
|
|
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that was distributed with this source code. |
|
9
|
|
|
* |
|
10
|
|
|
* @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md |
|
11
|
|
|
* @link https://github.com/graze/unicontroller-client |
|
12
|
|
|
*/ |
|
13
|
|
|
namespace Graze\UnicontrollerClient\Entity\Entity; |
|
14
|
|
|
|
|
15
|
|
|
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface; |
|
16
|
|
|
|
|
17
|
|
|
class EntityVarRtc implements EntityInterface |
|
18
|
|
|
{ |
|
19
|
|
|
/** |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $name; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
*/ |
|
27
|
|
|
protected $format; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @var int |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $offsetType; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var int |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $offsetValue; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var int |
|
41
|
|
|
*/ |
|
42
|
|
|
protected $offset2Type; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @var int |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $offset2Value; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @var int |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $truncateDay; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var int |
|
56
|
|
|
*/ |
|
57
|
|
|
protected $updatePolicy; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @var string |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $updateDay; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var int |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $updateHour; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var int |
|
71
|
|
|
*/ |
|
72
|
|
|
protected $updateMinutte; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @var int |
|
76
|
|
|
*/ |
|
77
|
|
|
protected $language; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @var int |
|
81
|
|
|
*/ |
|
82
|
|
|
protected $variableOffset; |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @var string |
|
86
|
|
|
*/ |
|
87
|
|
|
protected $dataSource; |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @var int |
|
91
|
|
|
*/ |
|
92
|
|
|
protected $cPadding; |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* @var int |
|
96
|
|
|
*/ |
|
97
|
|
|
protected $length; |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* @return string |
|
101
|
|
|
*/ |
|
102
|
2 |
|
public function getName() |
|
103
|
|
|
{ |
|
104
|
2 |
|
return $this->name; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* @param string $name |
|
109
|
|
|
*/ |
|
110
|
|
|
public function setName($name) |
|
111
|
|
|
{ |
|
112
|
|
|
$this->name = $name; |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
/** |
|
116
|
|
|
* @return string |
|
117
|
|
|
*/ |
|
118
|
2 |
|
public function getFormat() |
|
119
|
|
|
{ |
|
120
|
2 |
|
return $this->format; |
|
121
|
|
|
} |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @param string $format |
|
125
|
|
|
*/ |
|
126
|
|
|
public function setFormat($format) |
|
127
|
|
|
{ |
|
128
|
|
|
$this->format = $format; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* @return int |
|
133
|
|
|
*/ |
|
134
|
2 |
|
public function getOffsetType() |
|
135
|
|
|
{ |
|
136
|
2 |
|
return $this->offsetType; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @param int $offsetType |
|
141
|
|
|
*/ |
|
142
|
|
|
public function setOffsetType($offsetType) |
|
143
|
|
|
{ |
|
144
|
|
|
$this->offsetType = $offsetType; |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* @return int |
|
149
|
|
|
*/ |
|
150
|
2 |
|
public function getOffsetValue() |
|
151
|
|
|
{ |
|
152
|
2 |
|
return $this->offsetValue; |
|
153
|
|
|
} |
|
154
|
|
|
|
|
155
|
|
|
/** |
|
156
|
|
|
* @param int $offsetValue |
|
157
|
|
|
*/ |
|
158
|
|
|
public function setOffsetValue($offsetValue) |
|
159
|
|
|
{ |
|
160
|
|
|
$this->offsetValue = $offsetValue; |
|
161
|
|
|
} |
|
162
|
|
|
|
|
163
|
|
|
/** |
|
164
|
|
|
* @return int |
|
165
|
|
|
*/ |
|
166
|
2 |
|
public function getOffset2Type() |
|
167
|
|
|
{ |
|
168
|
2 |
|
return $this->offset2Type; |
|
169
|
|
|
} |
|
170
|
|
|
|
|
171
|
|
|
/** |
|
172
|
|
|
* @param int $offset2Type |
|
173
|
|
|
*/ |
|
174
|
|
|
public function setOffset2Type($offset2Type) |
|
175
|
|
|
{ |
|
176
|
|
|
$this->offset2Type = $offset2Type; |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* @return int |
|
181
|
|
|
*/ |
|
182
|
2 |
|
public function getOffset2Value() |
|
183
|
|
|
{ |
|
184
|
2 |
|
return $this->offset2Value; |
|
185
|
|
|
} |
|
186
|
|
|
|
|
187
|
|
|
/** |
|
188
|
|
|
* @param int $offset2Value |
|
189
|
|
|
*/ |
|
190
|
|
|
public function setOffset2Value($offset2Value) |
|
191
|
|
|
{ |
|
192
|
|
|
$this->offset2Value = $offset2Value; |
|
193
|
|
|
} |
|
194
|
|
|
|
|
195
|
|
|
/** |
|
196
|
|
|
* @return int |
|
197
|
|
|
*/ |
|
198
|
2 |
|
public function getTruncateDay() |
|
199
|
|
|
{ |
|
200
|
2 |
|
return $this->truncateDay; |
|
201
|
|
|
} |
|
202
|
|
|
|
|
203
|
|
|
/** |
|
204
|
|
|
* @param int $truncateDay |
|
205
|
|
|
*/ |
|
206
|
|
|
public function setTruncateDay($truncateDay) |
|
207
|
|
|
{ |
|
208
|
|
|
$this->truncateDay = $truncateDay; |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
/** |
|
212
|
|
|
* @return int |
|
213
|
|
|
*/ |
|
214
|
2 |
|
public function getUpdatePolicy() |
|
215
|
|
|
{ |
|
216
|
2 |
|
return $this->updatePolicy; |
|
217
|
|
|
} |
|
218
|
|
|
|
|
219
|
|
|
/** |
|
220
|
|
|
* @param int $updatePolicy |
|
221
|
|
|
*/ |
|
222
|
|
|
public function setUpdatePolicy($updatePolicy) |
|
223
|
|
|
{ |
|
224
|
|
|
$this->updatePolicy = $updatePolicy; |
|
225
|
|
|
} |
|
226
|
|
|
|
|
227
|
|
|
/** |
|
228
|
|
|
* @return string |
|
229
|
|
|
*/ |
|
230
|
2 |
|
public function getUpdateDay() |
|
231
|
|
|
{ |
|
232
|
2 |
|
return $this->updateDay; |
|
233
|
|
|
} |
|
234
|
|
|
|
|
235
|
|
|
/** |
|
236
|
|
|
* @param string $updateDay |
|
237
|
|
|
*/ |
|
238
|
|
|
public function setUpdateDay($updateDay) |
|
239
|
|
|
{ |
|
240
|
|
|
$this->updateDay = $updateDay; |
|
241
|
|
|
} |
|
242
|
|
|
|
|
243
|
|
|
/** |
|
244
|
|
|
* @return int |
|
245
|
|
|
*/ |
|
246
|
2 |
|
public function getUpdateHour() |
|
247
|
|
|
{ |
|
248
|
2 |
|
return $this->updateHour; |
|
249
|
|
|
} |
|
250
|
|
|
|
|
251
|
|
|
/** |
|
252
|
|
|
* @param int $updateHour |
|
253
|
|
|
*/ |
|
254
|
|
|
public function setUpdateHour($updateHour) |
|
255
|
|
|
{ |
|
256
|
|
|
$this->updateHour = $updateHour; |
|
257
|
|
|
} |
|
258
|
|
|
|
|
259
|
|
|
/** |
|
260
|
|
|
* @return int |
|
261
|
|
|
*/ |
|
262
|
2 |
|
public function getUpdateMinutte() |
|
263
|
|
|
{ |
|
264
|
2 |
|
return $this->updateMinutte; |
|
265
|
|
|
} |
|
266
|
|
|
|
|
267
|
|
|
/** |
|
268
|
|
|
* @param int $updateMinutte |
|
269
|
|
|
*/ |
|
270
|
|
|
public function setUpdateMinutte($updateMinutte) |
|
271
|
|
|
{ |
|
272
|
|
|
$this->updateMinutte = $updateMinutte; |
|
273
|
|
|
} |
|
274
|
|
|
|
|
275
|
|
|
/** |
|
276
|
|
|
* @return int |
|
277
|
|
|
*/ |
|
278
|
2 |
|
public function getLanguage() |
|
279
|
|
|
{ |
|
280
|
2 |
|
return $this->language; |
|
281
|
|
|
} |
|
282
|
|
|
|
|
283
|
|
|
/** |
|
284
|
|
|
* @param int $language |
|
285
|
|
|
*/ |
|
286
|
|
|
public function setLanguage($language) |
|
287
|
|
|
{ |
|
288
|
|
|
$this->language = $language; |
|
289
|
|
|
} |
|
290
|
|
|
|
|
291
|
|
|
/** |
|
292
|
|
|
* @return int |
|
293
|
|
|
*/ |
|
294
|
2 |
|
public function getVariableOffset() |
|
295
|
|
|
{ |
|
296
|
2 |
|
return $this->variableOffset; |
|
297
|
|
|
} |
|
298
|
|
|
|
|
299
|
|
|
/** |
|
300
|
|
|
* @param int $variableOffset |
|
301
|
|
|
*/ |
|
302
|
|
|
public function setVariableOffset($variableOffset) |
|
303
|
|
|
{ |
|
304
|
|
|
$this->variableOffset = $variableOffset; |
|
305
|
|
|
} |
|
306
|
|
|
|
|
307
|
|
|
/** |
|
308
|
|
|
* @return string |
|
309
|
|
|
*/ |
|
310
|
2 |
|
public function getDataSource() |
|
311
|
|
|
{ |
|
312
|
2 |
|
return $this->dataSource; |
|
313
|
|
|
} |
|
314
|
|
|
|
|
315
|
|
|
/** |
|
316
|
|
|
* @param string $dataSource |
|
317
|
|
|
*/ |
|
318
|
|
|
public function setDataSource($dataSource) |
|
319
|
|
|
{ |
|
320
|
|
|
$this->dataSource = $dataSource; |
|
321
|
|
|
} |
|
322
|
|
|
|
|
323
|
|
|
/** |
|
324
|
|
|
* @return int |
|
325
|
|
|
*/ |
|
326
|
2 |
|
public function getcPadding() |
|
327
|
|
|
{ |
|
328
|
2 |
|
return $this->cPadding; |
|
329
|
|
|
} |
|
330
|
|
|
|
|
331
|
|
|
/** |
|
332
|
|
|
* @param int $cPadding |
|
333
|
|
|
*/ |
|
334
|
|
|
public function setcPadding($cPadding) |
|
335
|
|
|
{ |
|
336
|
|
|
$this->cPadding = $cPadding; |
|
337
|
|
|
} |
|
338
|
|
|
|
|
339
|
|
|
/** |
|
340
|
|
|
* @return int |
|
341
|
|
|
*/ |
|
342
|
2 |
|
public function getLength() |
|
343
|
|
|
{ |
|
344
|
2 |
|
return $this->length; |
|
345
|
|
|
} |
|
346
|
|
|
|
|
347
|
|
|
/** |
|
348
|
|
|
* @param int $length |
|
349
|
|
|
*/ |
|
350
|
|
|
public function setLength($length) |
|
351
|
|
|
{ |
|
352
|
|
|
$this->length = $length; |
|
353
|
|
|
} |
|
354
|
|
|
} |
|
355
|
|
|
|