| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function collect(Map $map, array $markers = []) |
||
| 44 | { |
||
| 45 | $result = []; |
||
| 46 | |||
| 47 | foreach (array_merge($markers, $map->getOverlayManager()->getMarkers()) as $marker) { |
||
| 48 | $hash = md5($this->markerStyleRenderer->render($marker)); |
||
| 49 | $result[$hash] = $this->collectValue($marker, isset($result[$hash]) ? $result[$hash] : []); |
||
| 50 | } |
||
| 51 | |||
| 52 | return array_values($result); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |