RandomUuidGenerator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 2 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\AddressChangeContext\Infrastructure;
6
7
use Ramsey\Uuid\Uuid;
8
use WMDE\Fundraising\AddressChangeContext\Domain\Model\UuidGenerator;
9
10
class RandomUuidGenerator implements UuidGenerator {
11
12
	public function generate(): string {
13
		return Uuid::uuid4()->toString();
14
	}
15
16
}
17