|
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 EntityLineItem 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 $phantomField; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @return int |
|
61
|
|
|
*/ |
|
62
|
1 |
|
public function getAnchorPoint() |
|
63
|
|
|
{ |
|
64
|
1 |
|
return $this->anchorPoint; |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @param int $anchorPoint |
|
69
|
|
|
*/ |
|
70
|
|
|
public function setAnchorPoint($anchorPoint) |
|
71
|
|
|
{ |
|
72
|
|
|
$this->anchorPoint = $anchorPoint; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @return int |
|
77
|
|
|
*/ |
|
78
|
1 |
|
public function getXPos() |
|
79
|
|
|
{ |
|
80
|
1 |
|
return $this->xPos; |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* @param int $xPos |
|
85
|
|
|
*/ |
|
86
|
|
|
public function setXPos($xPos) |
|
87
|
|
|
{ |
|
88
|
|
|
$this->xPos = $xPos; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* @return int |
|
93
|
|
|
*/ |
|
94
|
1 |
|
public function getYPos() |
|
95
|
|
|
{ |
|
96
|
1 |
|
return $this->yPos; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* @param int $yPos |
|
101
|
|
|
*/ |
|
102
|
|
|
public function setYPos($yPos) |
|
103
|
|
|
{ |
|
104
|
|
|
$this->yPos = $yPos; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* @return int |
|
109
|
|
|
*/ |
|
110
|
1 |
|
public function getWidth() |
|
111
|
|
|
{ |
|
112
|
1 |
|
return $this->width; |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
/** |
|
116
|
|
|
* @param int $width |
|
117
|
|
|
*/ |
|
118
|
|
|
public function setWidth($width) |
|
119
|
|
|
{ |
|
120
|
|
|
$this->width = $width; |
|
121
|
|
|
} |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @return int |
|
125
|
|
|
*/ |
|
126
|
1 |
|
public function getHeight() |
|
127
|
|
|
{ |
|
128
|
1 |
|
return $this->height; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* @param int $height |
|
133
|
|
|
*/ |
|
134
|
|
|
public function setHeight($height) |
|
135
|
|
|
{ |
|
136
|
|
|
$this->height = $height; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @return int |
|
141
|
|
|
*/ |
|
142
|
1 |
|
public function getOrion() |
|
143
|
|
|
{ |
|
144
|
1 |
|
return $this->orion; |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* @param int $orion |
|
149
|
|
|
*/ |
|
150
|
|
|
public function setOrion($orion) |
|
151
|
|
|
{ |
|
152
|
|
|
$this->orion = $orion; |
|
153
|
|
|
} |
|
154
|
|
|
|
|
155
|
|
|
/** |
|
156
|
|
|
* @return string |
|
157
|
|
|
*/ |
|
158
|
1 |
|
public function getDescription() |
|
159
|
|
|
{ |
|
160
|
1 |
|
return $this->description; |
|
161
|
|
|
} |
|
162
|
|
|
|
|
163
|
|
|
/** |
|
164
|
|
|
* @param string $description |
|
165
|
|
|
*/ |
|
166
|
|
|
public function setDescription($description) |
|
167
|
|
|
{ |
|
168
|
|
|
$this->description = $description; |
|
169
|
|
|
} |
|
170
|
|
|
|
|
171
|
|
|
/** |
|
172
|
|
|
* @return int |
|
173
|
|
|
*/ |
|
174
|
1 |
|
public function getPhantomField() |
|
175
|
|
|
{ |
|
176
|
1 |
|
return $this->phantomField; |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* @param int $phantomField |
|
181
|
|
|
*/ |
|
182
|
|
|
public function setPhantomField($phantomField) |
|
183
|
|
|
{ |
|
184
|
|
|
$this->phantomField = $phantomField; |
|
185
|
|
|
} |
|
186
|
|
|
} |
|
187
|
|
|
|