You are here

public function PHPExcel_HashTable::__clone in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/HashTable.php \PHPExcel_HashTable::__clone()

* Implement PHP __clone to create a deep clone, not just a shallow copy.

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/HashTable.php, line 194

Class

PHPExcel_HashTable
PHPExcel_HashTable

Code

public function __clone() {
  $vars = get_object_vars($this);
  foreach ($vars as $key => $value) {
    if (is_object($value)) {
      $this->{$key} = clone $value;
    }
  }
}