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 EntityPictureItem implements EntityInterface |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
*/ |
22
|
|
|
protected $anchorPoint; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
*/ |
27
|
|
|
protected $xPos; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $yPos; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
protected $width; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var int |
41
|
|
|
*/ |
42
|
|
|
protected $height; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var int |
46
|
|
|
*/ |
47
|
|
|
protected $orion; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $description; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var int |
56
|
|
|
*/ |
57
|
|
|
protected $maintain; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string |
61
|
|
|
*/ |
62
|
|
|
protected $pictureName; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string |
66
|
|
|
*/ |
67
|
|
|
protected $printerReferenceName; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var int |
71
|
|
|
*/ |
72
|
|
|
protected $usePixelSize; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var string |
76
|
|
|
*/ |
77
|
|
|
protected $pictureData; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var int |
81
|
|
|
*/ |
82
|
|
|
protected $storeInternally; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @var int |
86
|
|
|
*/ |
87
|
|
|
protected $phantomField; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return int |
91
|
|
|
*/ |
92
|
2 |
|
public function getAnchorPoint() |
93
|
|
|
{ |
94
|
2 |
|
return $this->anchorPoint; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param int $anchorPoint |
99
|
|
|
*/ |
100
|
|
|
public function setAnchorPoint($anchorPoint) |
101
|
|
|
{ |
102
|
|
|
$this->anchorPoint = $anchorPoint; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @return int |
107
|
|
|
*/ |
108
|
2 |
|
public function getXPos() |
109
|
|
|
{ |
110
|
2 |
|
return $this->xPos; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param int $xPos |
115
|
|
|
*/ |
116
|
|
|
public function setXPos($xPos) |
117
|
|
|
{ |
118
|
|
|
$this->xPos = $xPos; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return int |
123
|
|
|
*/ |
124
|
2 |
|
public function getYPos() |
125
|
|
|
{ |
126
|
2 |
|
return $this->yPos; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param int $yPos |
131
|
|
|
*/ |
132
|
|
|
public function setYPos($yPos) |
133
|
|
|
{ |
134
|
|
|
$this->yPos = $yPos; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @return int |
139
|
|
|
*/ |
140
|
2 |
|
public function getWidth() |
141
|
|
|
{ |
142
|
2 |
|
return $this->width; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @param int $width |
147
|
|
|
*/ |
148
|
|
|
public function setWidth($width) |
149
|
|
|
{ |
150
|
|
|
$this->width = $width; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @return int |
155
|
|
|
*/ |
156
|
2 |
|
public function getHeight() |
157
|
|
|
{ |
158
|
2 |
|
return $this->height; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @param int $height |
163
|
|
|
*/ |
164
|
|
|
public function setHeight($height) |
165
|
|
|
{ |
166
|
|
|
$this->height = $height; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return int |
171
|
|
|
*/ |
172
|
2 |
|
public function getOrion() |
173
|
|
|
{ |
174
|
2 |
|
return $this->orion; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param int $orion |
179
|
|
|
*/ |
180
|
|
|
public function setOrion($orion) |
181
|
|
|
{ |
182
|
|
|
$this->orion = $orion; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
2 |
|
public function getDescription() |
189
|
|
|
{ |
190
|
2 |
|
return $this->description; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param string $description |
195
|
|
|
*/ |
196
|
|
|
public function setDescription($description) |
197
|
|
|
{ |
198
|
|
|
$this->description = $description; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @return int |
203
|
|
|
*/ |
204
|
2 |
|
public function getMaintain() |
205
|
|
|
{ |
206
|
2 |
|
return $this->maintain; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param int $maintain |
211
|
|
|
*/ |
212
|
|
|
public function setMaintain($maintain) |
213
|
|
|
{ |
214
|
|
|
$this->maintain = $maintain; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @return string |
219
|
|
|
*/ |
220
|
2 |
|
public function getPictureName() |
221
|
|
|
{ |
222
|
2 |
|
return $this->pictureName; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @param string $pictureName |
227
|
|
|
*/ |
228
|
|
|
public function setPictureName($pictureName) |
229
|
|
|
{ |
230
|
|
|
$this->pictureName = $pictureName; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @return string |
235
|
|
|
*/ |
236
|
2 |
|
public function getPrinterReferenceName() |
237
|
|
|
{ |
238
|
2 |
|
return $this->printerReferenceName; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @param string $printerReferenceName |
243
|
|
|
*/ |
244
|
|
|
public function setPrinterReferenceName($printerReferenceName) |
245
|
|
|
{ |
246
|
|
|
$this->printerReferenceName = $printerReferenceName; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @return int |
251
|
|
|
*/ |
252
|
2 |
|
public function getUsePixelSize() |
253
|
|
|
{ |
254
|
2 |
|
return $this->usePixelSize; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param int $usePixelSize |
259
|
|
|
*/ |
260
|
|
|
public function setUsePixelSize($usePixelSize) |
261
|
|
|
{ |
262
|
|
|
$this->usePixelSize = $usePixelSize; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @return string |
267
|
|
|
*/ |
268
|
2 |
|
public function getPictureData() |
269
|
|
|
{ |
270
|
2 |
|
return $this->pictureData; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @param string $pictureData |
275
|
|
|
*/ |
276
|
|
|
public function setPictureData($pictureData) |
277
|
|
|
{ |
278
|
|
|
$this->pictureData = $pictureData; |
279
|
|
|
} |
280
|
|
|
|
281
|
|
|
/** |
282
|
|
|
* @return int |
283
|
|
|
*/ |
284
|
2 |
|
public function getStoreInternally() |
285
|
|
|
{ |
286
|
2 |
|
return $this->storeInternally; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
/** |
290
|
|
|
* @param int $storeInternally |
291
|
|
|
*/ |
292
|
|
|
public function setStoreInternally($storeInternally) |
293
|
|
|
{ |
294
|
|
|
$this->storeInternally = $storeInternally; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* @return int |
299
|
|
|
*/ |
300
|
2 |
|
public function getPhantomField() |
301
|
|
|
{ |
302
|
2 |
|
return $this->phantomField; |
303
|
|
|
} |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* @param int $phantomField |
307
|
|
|
*/ |
308
|
|
|
public function setPhantomField($phantomField) |
309
|
|
|
{ |
310
|
|
|
$this->phantomField = $phantomField; |
311
|
|
|
} |
312
|
|
|
} |
313
|
|
|
|