DefaultUuidEntity::setUuid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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