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 EntityVarSeq implements EntityInterface |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @var string |
21
|
|
|
*/ |
22
|
|
|
protected $name; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
protected $prompt; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $length; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
protected $interval; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var int |
41
|
|
|
*/ |
42
|
|
|
protected $inputType; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var int |
46
|
|
|
*/ |
47
|
|
|
protected $outputType; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var int |
51
|
|
|
*/ |
52
|
|
|
protected $minValue; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var int |
56
|
|
|
*/ |
57
|
|
|
protected $maxValue; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var int |
61
|
|
|
*/ |
62
|
|
|
protected $rollOver; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var int |
66
|
|
|
*/ |
67
|
|
|
protected $fixedStart; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var int |
71
|
|
|
*/ |
72
|
|
|
protected $startValue; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var int |
76
|
|
|
*/ |
77
|
|
|
protected $paddingType; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var int |
81
|
|
|
*/ |
82
|
|
|
protected $repeatCount; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @var int |
86
|
|
|
*/ |
87
|
|
|
protected $resumeCount; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
2 |
|
public function getName() |
93
|
|
|
{ |
94
|
2 |
|
return $this->name; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param string $name |
99
|
|
|
*/ |
100
|
|
|
public function setName($name) |
101
|
|
|
{ |
102
|
|
|
$this->name = $name; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @return string |
107
|
|
|
*/ |
108
|
2 |
|
public function getPrompt() |
109
|
|
|
{ |
110
|
2 |
|
return $this->prompt; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param string $prompt |
115
|
|
|
*/ |
116
|
|
|
public function setPrompt($prompt) |
117
|
|
|
{ |
118
|
|
|
$this->prompt = $prompt; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return int |
123
|
|
|
*/ |
124
|
2 |
|
public function getLength() |
125
|
|
|
{ |
126
|
2 |
|
return $this->length; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param int $length |
131
|
|
|
*/ |
132
|
|
|
public function setLength($length) |
133
|
|
|
{ |
134
|
|
|
$this->length = $length; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @return int |
139
|
|
|
*/ |
140
|
2 |
|
public function getInterval() |
141
|
|
|
{ |
142
|
2 |
|
return $this->interval; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @param int $interval |
147
|
|
|
*/ |
148
|
|
|
public function setInterval($interval) |
149
|
|
|
{ |
150
|
|
|
$this->interval = $interval; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @return int |
155
|
|
|
*/ |
156
|
2 |
|
public function getInputType() |
157
|
|
|
{ |
158
|
2 |
|
return $this->inputType; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @param int $inputType |
163
|
|
|
*/ |
164
|
|
|
public function setInputType($inputType) |
165
|
|
|
{ |
166
|
|
|
$this->inputType = $inputType; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return int |
171
|
|
|
*/ |
172
|
2 |
|
public function getOutputType() |
173
|
|
|
{ |
174
|
2 |
|
return $this->outputType; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param int $outputType |
179
|
|
|
*/ |
180
|
|
|
public function setOutputType($outputType) |
181
|
|
|
{ |
182
|
|
|
$this->outputType = $outputType; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return int |
187
|
|
|
*/ |
188
|
2 |
|
public function getMinValue() |
189
|
|
|
{ |
190
|
2 |
|
return $this->minValue; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param int $minValue |
195
|
|
|
*/ |
196
|
|
|
public function setMinValue($minValue) |
197
|
|
|
{ |
198
|
|
|
$this->minValue = $minValue; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return int |
203
|
|
|
*/ |
204
|
2 |
|
public function getMaxValue() |
205
|
|
|
{ |
206
|
2 |
|
return $this->maxValue; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param int $maxValue |
211
|
|
|
*/ |
212
|
|
|
public function setMaxValue($maxValue) |
213
|
|
|
{ |
214
|
|
|
$this->maxValue = $maxValue; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @return int |
219
|
|
|
*/ |
220
|
2 |
|
public function getRollOver() |
221
|
|
|
{ |
222
|
2 |
|
return $this->rollOver; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @param int $rollOver |
227
|
|
|
*/ |
228
|
|
|
public function setRollOver($rollOver) |
229
|
|
|
{ |
230
|
|
|
$this->rollOver = $rollOver; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @return int |
235
|
|
|
*/ |
236
|
2 |
|
public function getFixedStart() |
237
|
|
|
{ |
238
|
2 |
|
return $this->fixedStart; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @param int $fixedStart |
243
|
|
|
*/ |
244
|
|
|
public function setFixedStart($fixedStart) |
245
|
|
|
{ |
246
|
|
|
$this->fixedStart = $fixedStart; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @return int |
251
|
|
|
*/ |
252
|
2 |
|
public function getStartValue() |
253
|
|
|
{ |
254
|
2 |
|
return $this->startValue; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param int $startValue |
259
|
|
|
*/ |
260
|
|
|
public function setStartValue($startValue) |
261
|
|
|
{ |
262
|
|
|
$this->startValue = $startValue; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @return int |
267
|
|
|
*/ |
268
|
2 |
|
public function getPaddingType() |
269
|
|
|
{ |
270
|
2 |
|
return $this->paddingType; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @param int $paddingType |
275
|
|
|
*/ |
276
|
|
|
public function setPaddingType($paddingType) |
277
|
|
|
{ |
278
|
|
|
$this->paddingType = $paddingType; |
279
|
|
|
} |
280
|
|
|
|
281
|
|
|
/** |
282
|
|
|
* @return int |
283
|
|
|
*/ |
284
|
2 |
|
public function getRepeatCount() |
285
|
|
|
{ |
286
|
2 |
|
return $this->repeatCount; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
/** |
290
|
|
|
* @param int $repeatCount |
291
|
|
|
*/ |
292
|
|
|
public function setRepeatCount($repeatCount) |
293
|
|
|
{ |
294
|
|
|
$this->repeatCount = $repeatCount; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* @return int |
299
|
|
|
*/ |
300
|
2 |
|
public function getResumeCount() |
301
|
|
|
{ |
302
|
2 |
|
return $this->resumeCount; |
303
|
|
|
} |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* @param int $resumeCount |
307
|
|
|
*/ |
308
|
|
|
public function setResumeCount($resumeCount) |
309
|
|
|
{ |
310
|
|
|
$this->resumeCount = $resumeCount; |
311
|
|
|
} |
312
|
|
|
} |
313
|
|
|
|