| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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'); |
||
|
|
|||
| 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 |
||
| 44 | } |
||
| 45 | } |
||
| 46 |