| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | trait UuidFieldTrait |
||
| 9 | { |
||
| 10 | private $id; |
||
| 11 | |||
| 12 | protected static function metaForId(ClassMetadataBuilder $builder): void |
||
| 13 | { |
||
| 14 | $builder->createField('id', Type::GUID) |
||
| 15 | ->makePrimaryKey() |
||
| 16 | ->nullable(false) |
||
| 17 | ->generatedValue('UUID') |
||
| 18 | ->build(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getId() |
||
| 24 | } |
||
| 25 | } |
||
| 26 |