Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class Uuid implements Id |
||
8 | { |
||
9 | private $value; |
||
10 | |||
11 | 14 | public function __construct($value = null) |
|
12 | { |
||
13 | 14 | $this->value = $value ?? \Igni\Utils\Uuid::generateShort(); |
|
14 | 14 | } |
|
15 | |||
16 | 14 | public function getValue() |
|
17 | { |
||
18 | 14 | return $this->value; |
|
19 | } |
||
20 | |||
21 | 6 | public function __toString(): string |
|
24 | } |
||
25 | } |
||
26 |