generated from jric11/baseProject
Codex's updates...
This commit is contained in:
@@ -38,6 +38,8 @@ class PlotArea
|
||||
*/
|
||||
private array $plotSeries;
|
||||
|
||||
private ?DataTable $dataTable = null;
|
||||
|
||||
/**
|
||||
* Create a new PlotArea.
|
||||
*
|
||||
@@ -195,16 +197,34 @@ class PlotArea
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setDataTable(DataTable $dataTable): self
|
||||
{
|
||||
$this->dataTable = $dataTable;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDataTable(): ?DataTable
|
||||
{
|
||||
return $this->dataTable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implement PHP __clone to create a deep clone, not just a shallow copy.
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->layout = ($this->layout === null) ? null : clone $this->layout;
|
||||
$this->dataTable = ($this->dataTable === null) ? null : clone $this->dataTable;
|
||||
$plotSeries = $this->plotSeries;
|
||||
$this->plotSeries = [];
|
||||
foreach ($plotSeries as $series) {
|
||||
$this->plotSeries[] = clone $series;
|
||||
}
|
||||
$gradientFillStops = $this->gradientFillStops;
|
||||
$this->gradientFillStops = [];
|
||||
foreach ($gradientFillStops as $gradientFillStop) {
|
||||
$this->gradientFillStops[] = [$gradientFillStop[0], clone $gradientFillStop[1]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user