Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | private function getUuidGenerator(): UuidFactoryInterface |
||
47 | { |
||
48 | if ($this->uuidFactory === null) { |
||
49 | $this->uuidFactory = new UuidFactory(); |
||
50 | $this->uuidFactory->setCodec(new TimestampFirstCombCodec($this->uuidFactory->getUuidBuilder())); |
||
51 | $this->uuidFactory->setRandomGenerator( |
||
52 | new CombGenerator($this->uuidFactory->getRandomGenerator(), $this->uuidFactory->getNumberConverter()) |
||
53 | ); |
||
54 | } |
||
55 | |||
56 | return $this->uuidFactory; |
||
57 | } |
||
59 |