1 | <?php |
||
23 | class HeatmapLayer implements OptionsAwareInterface, VariableAwareInterface |
||
24 | { |
||
25 | use OptionsAwareTrait; |
||
26 | use VariableAwareTrait; |
||
27 | |||
28 | /** |
||
29 | * @var Coordinate[] |
||
30 | */ |
||
31 | private $coordinates = []; |
||
32 | |||
33 | /** |
||
34 | * @param Coordinate[] $coordinates |
||
35 | * @param mixed[] $options |
||
36 | */ |
||
37 | public function __construct(array $coordinates = [], array $options = []) |
||
43 | |||
44 | /** |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function hasCoordinates() |
||
51 | |||
52 | /** |
||
53 | * @return Coordinate[] |
||
54 | */ |
||
55 | public function getCoordinates() |
||
59 | |||
60 | /** |
||
61 | * @param Coordinate[] $coordinates |
||
62 | */ |
||
63 | public function setCoordinates(array $coordinates) |
||
68 | |||
69 | /** |
||
70 | * @param Coordinate[] $coordinates |
||
71 | */ |
||
72 | public function addCoordinates(array $coordinates) |
||
78 | |||
79 | /** |
||
80 | * @param Coordinate $coordinate |
||
81 | * |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function hasCoordinate(Coordinate $coordinate) |
||
88 | |||
89 | /** |
||
90 | * @param Coordinate $coordinate |
||
91 | */ |
||
92 | public function addCoordinate(Coordinate $coordinate) |
||
98 | |||
99 | /** |
||
100 | * @param Coordinate $coordinate |
||
101 | */ |
||
102 | public function removeCoordinate(Coordinate $coordinate) |
||
107 | } |
||
108 |