Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 55% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class TreeMapChart extends Chart |
||
14 | { |
||
15 | /** |
||
16 | * @var TreeMapChartOptions |
||
17 | */ |
||
18 | protected ChartOptionsInterface $options; |
||
19 | |||
20 | 1 | public function __construct() |
|
25 | } |
||
26 | |||
27 | public function getType(): string |
||
28 | { |
||
29 | return 'TreeMap'; |
||
30 | } |
||
31 | |||
32 | public function getPackage(): string |
||
33 | { |
||
34 | return 'treemap'; |
||
35 | } |
||
36 | |||
37 | 1 | public function getAvailableEventTypes(): array |
|
38 | { |
||
39 | 1 | return [ |
|
40 | 1 | EventType::ON_MOUSE_OUT, |
|
41 | 1 | EventType::ON_MOUSE_OVER, |
|
42 | 1 | EventType::READY, |
|
43 | 1 | EventType::ROLLUP, |
|
44 | 1 | EventType::SELECT, |
|
45 | 1 | ]; |
|
46 | } |
||
47 | |||
48 | public function getOptions(): TreeMapChartOptions |
||
49 | { |
||
50 | return $this->options; |
||
|
|||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @param TreeMapChartOptions $options |
||
55 | */ |
||
56 | public function setOptions(ChartOptionsInterface $options): TreeMapChart |
||
61 | } |
||
62 | } |
||
63 |