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 MarkerCollector $markerCollector |
||
38 | * @param string|null $type |
||
39 | */ |
||
40 | public function __construct(MarkerCollector $markerCollector, $type = null) |
||
45 | |||
46 | /** |
||
47 | * @return MarkerCollector |
||
48 | */ |
||
49 | public function getMarkerCollector() |
||
53 | |||
54 | /** |
||
55 | * @param MarkerCollector $markerCollector |
||
56 | */ |
||
57 | public function setMarkerCollector(MarkerCollector $markerCollector) |
||
61 | |||
62 | /** |
||
63 | * @return string|null |
||
64 | */ |
||
65 | public function getType() |
||
69 | |||
70 | /** |
||
71 | * @param string|null $type |
||
72 | */ |
||
73 | public function setType($type) |
||
77 | |||
78 | /** |
||
79 | * @param Map $map |
||
80 | * @param InfoWindow[] $infoWindows |
||
81 | * @param int $strategy |
||
82 | * |
||
83 | * @return InfoWindow[] |
||
84 | */ |
||
85 | public function collect( |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | protected function collectValue($value, array $defaults = []) |
||
116 | } |
||
117 |