Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | protected function newIdFor(string $type): UuidInterface |
||
20 | { |
||
21 | try { |
||
22 | return $this->uuidFactory->uuid4(); |
||
23 | } catch (Throwable $uuidException) { |
||
24 | throw new LogicException(sprintf( |
||
25 | 'Could not generate the %s id: %s', |
||
26 | $type, |
||
27 | $uuidException->getMessage() |
||
28 | ), $uuidException->getCode(), $uuidException); |
||
29 | } |
||
32 |