Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
22 | 3 | protected static function metaForId(ClassMetadataBuilder $builder): void |
|
23 | { |
||
24 | 3 | $builder->createField('id', MappingHelper::TYPE_UUID) |
|
25 | 3 | ->makePrimaryKey() |
|
26 | 3 | ->nullable(false) |
|
27 | 3 | ->unique(true) |
|
28 | 3 | ->generatedValue('CUSTOM') |
|
29 | 3 | ->setCustomIdGenerator(UuidOrderedTimeGenerator::class) |
|
30 | 3 | ->build(); |
|
31 | 3 | } |
|
56 |