Passed
Push — master ( 862b31...3c96ea )
by Marcel
05:54
created

UuidTrait::setUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Book\Export;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
trait UuidTrait {
8
9
    #[Serializer\Type('string')]
10
    #[Serializer\SerializedName('uuid')]
11
    private ?string $uuid;
12
13
    /**
14
     * @return string|null
15
     */
16
    public function getUuid(): ?string {
17
        return $this->uuid;
18
    }
19
20
    /**
21
     * @param string|null $uuid
22
     * @return self
23
     */
24
    public function setUuid(?string $uuid): self {
25
        $this->uuid = $uuid;
26
        return $this;
27
    }
28
29
}