Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 64.71% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
10 | trait UuidFieldTrait |
||
11 | { |
||
12 | /** |
||
13 | * @var UuidInterface |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * @param ClassMetadataBuilder $builder |
||
19 | * |
||
20 | * @see https://github.com/ramsey/uuid-doctrine#innodb-optimised-binary-uuids |
||
21 | */ |
||
22 | 3 | protected static function metaForId(ClassMetadataBuilder $builder): void |
|
31 | 3 | } |
|
32 | |||
33 | 3 | public function getId(): ?UuidInterface |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param UuidInterface $id |
||
40 | * |
||
41 | * @return UuidFieldTrait |
||
42 | */ |
||
43 | public function setId(UuidInterface $id) |
||
56 |