Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 2 | public function __clone() |
|
36 | { |
||
37 | 2 | if (! $this->uuid) { |
|
38 | /* |
||
39 | * ensure doctrine proxies compatibility |
||
40 | * @see http://doctrine-orm.readthedocs.io/en/latest/cookbook/implementing-wakeup-or-clone.html |
||
41 | */ |
||
42 | 1 | return; |
|
43 | } |
||
44 | 1 | $this->uuid = Uuid::uuid4()->toString(); |
|
45 | 1 | } |
|
46 | } |
||
47 |