public function __clone()
{
parent::__clone();
self::$imageCounter++;
$this->imageIndex = self::$imageCounter;
}
public function __clone() { parent::__clone(); $this->title = clone $this->title; $this->legend = clone $this->legend; $this->plotArea = clone $this->plotArea; $this->view3D = clone $this->view3D; }