Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class DiffPieChart extends PieChart implements DiffChart |
||
13 | { |
||
14 | /** |
||
15 | * @var DiffPieChartOptions |
||
16 | */ |
||
17 | protected ChartOptionsInterface $options; |
||
18 | |||
19 | public function __construct(private readonly PieChart $oldChart, private readonly PieChart $newChart) |
||
20 | { |
||
21 | parent::__construct(); |
||
22 | |||
23 | $this->options = new DiffPieChartOptions(); |
||
24 | } |
||
25 | |||
26 | public function getOptions(): DiffPieChartOptions |
||
27 | { |
||
28 | return $this->options; |
||
|
|||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param DiffPieChartOptions $options |
||
33 | */ |
||
34 | public function setOptions(ChartOptionsInterface $options): DiffPieChart |
||
35 | { |
||
36 | $this->options = $options; |
||
37 | |||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | public function getOldChart(): PieChart |
||
44 | } |
||
45 | |||
46 | public function getNewChart(): PieChart |
||
47 | { |
||
51 |