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