Passed
Push — master ( ab171b...3e1bb9 )
by Philip
14:43
created

DefaultUuidEntity::setUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
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
    /**
11
     * @var string
12
     */
13
    private $uuid;
14
15 28
    public function getUuid(): ?string
16
    {
17 28
        return $this->uuid;
18
    }
19
20 28
    public function setUuid(string $uuid): self
21
    {
22 28
        $this->uuid = $uuid;
23
24 28
        return $this;
25
    }
26
}
27