1 | <?php |
||
21 | class InfoWindowCollector extends AbstractCollector |
||
22 | { |
||
23 | const STRATEGY_MAP = 1; |
||
24 | const STRATEGY_MARKER = 2; |
||
25 | |||
26 | /** |
||
27 | * @var MarkerCollector |
||
28 | */ |
||
29 | private $markerCollector; |
||
30 | |||
31 | /** |
||
32 | * @var string|null |
||
33 | */ |
||
34 | private $type; |
||
35 | |||
36 | /** |
||
37 | * @param string|null $type |
||
38 | */ |
||
39 | 144 | public function __construct(MarkerCollector $markerCollector, $type = null) |
|
44 | |||
45 | /** |
||
46 | * @return MarkerCollector |
||
47 | */ |
||
48 | 4 | public function getMarkerCollector() |
|
52 | |||
53 | 144 | public function setMarkerCollector(MarkerCollector $markerCollector) |
|
57 | |||
58 | /** |
||
59 | * @return string|null |
||
60 | */ |
||
61 | 12 | public function getType() |
|
65 | |||
66 | /** |
||
67 | * @param string|null $type |
||
68 | */ |
||
69 | 144 | public function setType($type) |
|
73 | |||
74 | /** |
||
75 | * @param InfoWindow[] $infoWindows |
||
76 | * @param int|null $strategy |
||
77 | * |
||
78 | * @return InfoWindow[] |
||
79 | */ |
||
80 | 84 | public function collect(Map $map, array $infoWindows = [], $strategy = null) |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 44 | protected function collectValue($value, array $defaults = []) |
|
112 | } |
||
113 |