1 | <?php |
||
17 | class ControlManager |
||
18 | { |
||
19 | /** |
||
20 | * @var MapTypeControl|null |
||
21 | */ |
||
22 | private $mapTypeControl; |
||
23 | |||
24 | /** |
||
25 | * @var RotateControl|null |
||
26 | */ |
||
27 | private $rotateControl; |
||
28 | |||
29 | /** |
||
30 | * @var ScaleControl|null |
||
31 | */ |
||
32 | private $scaleControl; |
||
33 | |||
34 | /** |
||
35 | * @var StreetViewControl|null |
||
36 | */ |
||
37 | private $streetViewControl; |
||
38 | |||
39 | /** |
||
40 | * @var ZoomControl|null |
||
41 | */ |
||
42 | private $zoomControl; |
||
43 | |||
44 | /** |
||
45 | * @var CustomControl[] |
||
46 | */ |
||
47 | private $customControls = []; |
||
48 | |||
49 | /** |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function hasMapTypeControl() |
||
56 | |||
57 | /** |
||
58 | * @return MapTypeControl|null |
||
59 | */ |
||
60 | public function getMapTypeControl() |
||
64 | |||
65 | /** |
||
66 | * @param MapTypeControl|null $mapTypeControl |
||
67 | */ |
||
68 | public function setMapTypeControl(MapTypeControl $mapTypeControl = null) |
||
72 | |||
73 | /** |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function hasRotateControl() |
||
80 | |||
81 | /** |
||
82 | * @return RotateControl|null |
||
83 | */ |
||
84 | public function getRotateControl() |
||
88 | |||
89 | /** |
||
90 | * @param RotateControl|null $rotateControl |
||
91 | */ |
||
92 | public function setRotateControl(RotateControl $rotateControl = null) |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function hasScaleControl() |
||
104 | |||
105 | /** |
||
106 | * @return ScaleControl|null |
||
107 | */ |
||
108 | public function getScaleControl() |
||
112 | |||
113 | /** |
||
114 | * @param ScaleControl|null $scaleControl |
||
115 | */ |
||
116 | public function setScaleControl(ScaleControl $scaleControl = null) |
||
120 | |||
121 | /** |
||
122 | * @return bool |
||
123 | */ |
||
124 | public function hasStreetViewControl() |
||
128 | |||
129 | /** |
||
130 | * @return StreetViewControl|null |
||
131 | */ |
||
132 | public function getStreetViewControl() |
||
136 | |||
137 | /** |
||
138 | * @param StreetViewControl|null $streetViewControl |
||
139 | */ |
||
140 | public function setStreetViewControl(StreetViewControl $streetViewControl = null) |
||
144 | |||
145 | /** |
||
146 | * @return bool |
||
147 | */ |
||
148 | public function hasZoomControl() |
||
152 | |||
153 | /** |
||
154 | * @return ZoomControl|null |
||
155 | */ |
||
156 | public function getZoomControl() |
||
160 | |||
161 | /** |
||
162 | * @param ZoomControl|null $zoomControl |
||
163 | */ |
||
164 | public function setZoomControl(ZoomControl $zoomControl = null) |
||
168 | |||
169 | /** |
||
170 | * @return bool |
||
171 | */ |
||
172 | public function hasCustomControls() |
||
176 | |||
177 | /** |
||
178 | * @return CustomControl[] |
||
179 | */ |
||
180 | public function getCustomControls() |
||
184 | |||
185 | /** |
||
186 | * @param CustomControl[] $customControls |
||
187 | */ |
||
188 | public function setCustomControls(array $customControls) |
||
193 | |||
194 | /** |
||
195 | * @param CustomControl[] $customControls |
||
196 | */ |
||
197 | public function addCustomControls(array $customControls) |
||
203 | |||
204 | /** |
||
205 | * @param CustomControl $customControl |
||
206 | * |
||
207 | * @return bool |
||
208 | */ |
||
209 | public function hasCustomControl(CustomControl $customControl) |
||
213 | |||
214 | /** |
||
215 | * @param CustomControl $customControl |
||
216 | */ |
||
217 | public function addCustomControl(CustomControl $customControl) |
||
223 | |||
224 | /** |
||
225 | * @param CustomControl $customControl |
||
226 | */ |
||
227 | public function removeCustomControl(CustomControl $customControl) |
||
232 | } |
||
233 |