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

UuidTrait::getUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace App\Response;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
trait UuidTrait {
8
9
    #[Serializer\SerializedName('uuid')]
10
    #[Serializer\Type('string')]
11
    #[Serializer\ReadOnlyProperty]
12
    private readonly string $uuid;
13
14
    public function getUuid(): string {
15
        return $this->uuid;
16
    }
17
}