Mercurial > hg > isophonics-drupal-site
annotate vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 <?php |
Chris@14 | 2 |
Chris@14 | 3 namespace DeepCopy; |
Chris@14 | 4 |
Chris@14 | 5 /** |
Chris@14 | 6 * Deep copies the given value. |
Chris@14 | 7 * |
Chris@14 | 8 * @param mixed $value |
Chris@14 | 9 * @param bool $useCloneMethod |
Chris@14 | 10 * |
Chris@14 | 11 * @return mixed |
Chris@14 | 12 */ |
Chris@14 | 13 function deep_copy($value, $useCloneMethod = false) |
Chris@14 | 14 { |
Chris@14 | 15 return (new DeepCopy($useCloneMethod))->copy($value); |
Chris@14 | 16 } |