/** * Clone Polygon */ public function __clone() { parent::__clone(); $cloneCoordinate = array(); foreach ($this->getCoordinates() as $coordinate) { $cloneCoordinate[] = clone $coordinate; } $this->coordinates = new \ArrayObject($cloneCoordinate); }
/** * Clone Rectangle */ public function __clone() { parent::__clone(); $this->coordinate = clone $this->coordinate; $this->dimension = clone $this->dimension; }
/** * Clone Arc */ public function __clone() { parent::__clone(); $this->center = clone $this->center; $this->dimension = clone $this->dimension; }