1 | <?php |
||
24 | class Marker implements ExtendableInterface, OptionsAwareInterface |
||
25 | { |
||
26 | use OptionsAwareTrait; |
||
27 | use VariableAwareTrait; |
||
28 | |||
29 | /** |
||
30 | * @var Coordinate |
||
31 | */ |
||
32 | private $position; |
||
33 | |||
34 | /** |
||
35 | * @var string|null |
||
36 | */ |
||
37 | private $animation; |
||
38 | |||
39 | /** |
||
40 | * @var Icon|null |
||
41 | */ |
||
42 | private $icon; |
||
43 | |||
44 | /** |
||
45 | * @var Symbol|null |
||
46 | */ |
||
47 | private $symbol; |
||
48 | |||
49 | /** |
||
50 | * @var MarkerShape|null |
||
51 | */ |
||
52 | private $shape; |
||
53 | |||
54 | /** |
||
55 | * @var InfoWindow|null |
||
56 | */ |
||
57 | private $infoWindow; |
||
58 | |||
59 | /** |
||
60 | * @param Coordinate $position |
||
61 | * @param string|null $animation |
||
62 | * @param Icon|null $icon |
||
63 | * @param MarkerShape|null $shape |
||
64 | * @param Symbol|null $symbol |
||
65 | * @param mixed[] $options |
||
66 | */ |
||
67 | public function __construct( |
||
86 | |||
87 | /** |
||
88 | * @return Coordinate |
||
89 | */ |
||
90 | public function getPosition() |
||
94 | |||
95 | /** |
||
96 | * @param Coordinate $position |
||
97 | */ |
||
98 | public function setPosition(Coordinate $position) |
||
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | public function hasAnimation() |
||
110 | |||
111 | /** |
||
112 | * @return string|null |
||
113 | */ |
||
114 | public function getAnimation() |
||
118 | |||
119 | /** |
||
120 | * @param string|null $animation |
||
121 | */ |
||
122 | public function setAnimation($animation = null) |
||
126 | |||
127 | /** |
||
128 | * @return bool |
||
129 | */ |
||
130 | public function hasIcon() |
||
134 | |||
135 | /** |
||
136 | * @return Icon|null |
||
137 | */ |
||
138 | public function getIcon() |
||
142 | |||
143 | /** |
||
144 | * @param Icon|null $icon |
||
145 | */ |
||
146 | public function setIcon(Icon $icon = null) |
||
154 | |||
155 | /** |
||
156 | * @return bool |
||
157 | */ |
||
158 | public function hasSymbol() |
||
162 | |||
163 | /** |
||
164 | * @return Symbol|null |
||
165 | */ |
||
166 | public function getSymbol() |
||
170 | |||
171 | /** |
||
172 | * @param Symbol|null $symbol |
||
173 | */ |
||
174 | public function setSymbol(Symbol $symbol = null) |
||
182 | |||
183 | /** |
||
184 | * @return bool |
||
185 | */ |
||
186 | public function hasShape() |
||
190 | |||
191 | /** |
||
192 | * @return MarkerShape|null |
||
193 | */ |
||
194 | public function getShape() |
||
198 | |||
199 | /** |
||
200 | * @param MarkerShape|null $shape |
||
201 | */ |
||
202 | public function setShape(MarkerShape $shape = null) |
||
206 | |||
207 | /** |
||
208 | * @return bool |
||
209 | */ |
||
210 | public function hasInfoWindow() |
||
214 | |||
215 | /** |
||
216 | * @return InfoWindow|null |
||
217 | */ |
||
218 | public function getInfoWindow() |
||
222 | |||
223 | /** |
||
224 | * @param InfoWindow|null $infoWindow |
||
225 | */ |
||
226 | public function setInfoWindow(InfoWindow $infoWindow = null) |
||
230 | } |
||
231 |