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