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