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