StandaloneUuidEntity::getUuid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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