| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 44 | public function cloneObject() |
|
| 26 | { |
||
| 27 | 44 | $object = clone($this->object); |
|
| 28 | |||
| 29 | 44 | $objectProperties = array_filter(get_object_vars($object), 'is_object'); |
|
| 30 | 44 | foreach ($objectProperties as $property => $values) { |
|
| 31 | 44 | $object->{$property} = clone($values); |
|
| 32 | } |
||
| 33 | |||
| 34 | 44 | return $object; |
|
| 35 | } |
||
| 37 |