Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| UuidV1 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| createRandom | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Identifiers; |
| 3 | |
| 4 | use Apie\Core\Attributes\FakeMethod; |
| 5 | use Ramsey\Uuid\Uuid as RamseyUuid; |
| 6 | |
| 7 | #[FakeMethod("createRandom")] |
| 8 | class UuidV1 extends Uuid |
| 9 | { |
| 10 | public static function createRandom(): self |
| 11 | { |
| 12 | return static::fromNative(RamseyUuid::uuid1()->toString()); |
| 13 | } |
| 14 | } |