StandaloneUuidEntity   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 29
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

3 Methods

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