| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait CloneableTrait |
||
| 6 | { |
||
| 7 | /** @var object $object */ |
||
| 8 | private $object; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * CloneableTrait constructor. |
||
| 12 | * |
||
| 13 | * @param object $object the object to clone. |
||
| 14 | */ |
||
| 15 | 74 | public function __construct($object) |
|
| 18 | 74 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Clone an object. |
||
| 22 | * |
||
| 23 | * @return object |
||
| 24 | */ |
||
| 25 | 44 | public function cloneObject() |
|
| 37 |