DefaultUuidEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUuid() 0 4 1
A setUuid() 0 4 1
1
<?php
2
3
namespace Dontdrinkandroot\Entity;
4
5
/**
6
 * @author Philip Washington Sorst <[email protected]>
7
 */
8
class DefaultUuidEntity extends GeneratedIntegerIdEntity implements UuidEntityInterface
9
{
10
    /** @var string */
11
    private $uuid;
12
13
    /**
14
     * {@inheritdoc}
15
     */
16 32
    public function getUuid(): ?string
17
    {
18 32
        return $this->uuid;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 32
    public function setUuid(string $uuid): void
25
    {
26 32
        $this->uuid = $uuid;
27 32
    }
28
}
29