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