Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 35.7% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Map extends Chart |
||
14 | { |
||
15 | /** |
||
16 | * @var MapOptions |
||
17 | */ |
||
18 | protected ChartOptionsInterface $options; |
||
19 | |||
20 | 1 | public function __construct() |
|
21 | { |
||
22 | 1 | parent::__construct(); |
|
23 | |||
24 | 1 | $this->options = new MapOptions(); |
|
25 | } |
||
26 | |||
27 | public function getType(): string |
||
28 | { |
||
29 | return 'Map'; |
||
30 | } |
||
31 | |||
32 | public function getPackage(): string |
||
33 | { |
||
34 | return 'map'; |
||
35 | } |
||
36 | |||
37 | 1 | public function getAvailableEventTypes(): array |
|
42 | ]; |
||
43 | } |
||
44 | |||
45 | public function getOptions(): MapOptions |
||
46 | { |
||
47 | return $this->options; |
||
|
|||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param MapOptions $options |
||
52 | */ |
||
53 | public function setOptions(ChartOptionsInterface $options): Map |
||
58 | } |
||
59 | } |
||
60 |