| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | trait IdTrait |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @ORM\Id() |
||
| 29 | * @ORM\Column(type="string", length=36) |
||
| 30 | */ |
||
| 31 | private string $id; |
||
| 32 | |||
| 33 | 3 | private function setId(): void |
|
| 34 | { |
||
| 35 | 3 | $this->id = Uuid::uuid4()->getHex()->toString(); |
|
| 36 | 3 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @ApiProperty(readable=false) |
||
| 40 | */ |
||
| 41 | public function getId(): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |