| Total Complexity | 5 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 78.56% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class MediumChartOptions extends BasicChartOptions |
||
| 9 | { |
||
| 10 | use ColorsTrait; |
||
| 11 | |||
| 12 | use FontNameTrait; |
||
| 13 | |||
| 14 | use FontSizeTrait; |
||
| 15 | |||
| 16 | use TitleTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The background color for the main area of the chart. Can be either a simple HTML color string, for example : |
||
| 20 | * 'red' or '#00cc00', or a BackgroundColor object. |
||
| 21 | * |
||
| 22 | * @var string|AdvancedBackgroundColor |
||
| 23 | */ |
||
| 24 | protected $backgroundColor; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * An object with members to configure the placement and size of the chart area (where the chart itself is drawn, |
||
| 28 | * excluding axis and legends). |
||
| 29 | * |
||
| 30 | * @var ChartArea |
||
| 31 | */ |
||
| 32 | protected $chartArea; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var TitleTextStyle |
||
| 36 | */ |
||
| 37 | protected $titleTextStyle; |
||
| 38 | |||
| 39 | 11 | public function __construct() |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string|AdvancedBackgroundColor |
||
| 50 | */ |
||
| 51 | 2 | public function getBackgroundColor() |
|
| 54 | } |
||
| 55 | |||
| 56 | 2 | public function getChartArea(): ChartArea |
|
| 57 | { |
||
| 58 | 2 | return $this->chartArea; |
|
| 59 | } |
||
| 60 | |||
| 61 | 2 | public function getTitleTextStyle(): TitleTextStyle |
|
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return $this |
||
| 68 | */ |
||
| 69 | public function setBackgroundColor(string $backgroundColor) |
||
| 76 |