public function PHPExcel_Worksheet_Drawing_Shadow::__clone in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing/Shadow.php \PHPExcel_Worksheet_Drawing_Shadow::__clone()
* Implement PHP __clone to create a deep clone, not just a shallow copy.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ Drawing/ Shadow.php, line 278
Class
- PHPExcel_Worksheet_Drawing_Shadow
- PHPExcel_Worksheet_Drawing_Shadow
Code
public function __clone() {
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->{$key} = clone $value;
}
else {
$this->{$key} = $value;
}
}
}