| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | trait IdTrait |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Must allow return `null` for lowest dependencies. |
||
| 31 | * |
||
| 32 | * @ORM\Id |
||
| 33 | * @ORM\Column(type="uuid", unique=true, nullable=false) |
||
| 34 | * @ORM\GeneratedValue(strategy="CUSTOM") |
||
| 35 | * @ORM\CustomIdGenerator(class=UuidGenerator::class) |
||
| 36 | * @ApiProperty(readable=false) |
||
| 37 | */ |
||
| 38 | protected ?UuidInterface $id = null; |
||
| 39 | |||
| 40 | 5 | public function getId(): ?UuidInterface |
|
| 45 |