1 | <?php |
||
2 | |||
3 | namespace CMEN\GoogleChartsBundle\GoogleCharts\Charts\Material; |
||
4 | |||
5 | use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface; |
||
6 | use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineChart\Material\LineChartOptions; |
||
7 | |||
8 | /** |
||
9 | * @author Christophe Meneses |
||
10 | */ |
||
11 | class LineChart extends \CMEN\GoogleChartsBundle\GoogleCharts\Charts\LineChart |
||
12 | { |
||
13 | /** |
||
14 | * @var LineChartOptions |
||
15 | */ |
||
16 | protected ChartOptionsInterface $options; |
||
17 | |||
18 | public function __construct() |
||
19 | { |
||
20 | parent::__construct(); |
||
21 | |||
22 | $this->options = new LineChartOptions(); |
||
23 | } |
||
24 | |||
25 | public function getPackage(): string |
||
26 | { |
||
27 | return 'line'; |
||
28 | } |
||
29 | |||
30 | public function getLibrary(): string |
||
31 | { |
||
32 | return 'charts'; |
||
33 | } |
||
34 | |||
35 | public function getType(): string |
||
36 | { |
||
37 | return 'Line'; |
||
38 | } |
||
39 | |||
40 | public function getOptions(): LineChartOptions |
||
41 | { |
||
42 | return $this->options; |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
43 | } |
||
44 | } |
||
45 |