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