User::getUuid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use JMS\Serializer\Annotation as JMS;
7
use Swagger\Annotations as SWG;
8
9
/**
10
 * @ORM\Entity(repositoryClass="App\Repository\UserRepository")
11
 * @ORM\Table(name="user")
12
 *
13
 * @JMS\ExclusionPolicy("all")
14
 */
15
class User
16
{
17
    /**
18
     * @ORM\Id
19
     * @ORM\GeneratedValue
20
     * @ORM\Column(type="integer")
21
     */
22
    private $id;
23
24
    /**
25
     * @ORM\Column(type="string")
26
     *
27
     * @JMS\Groups({"users", "guild"})
28
     * @JMS\Expose
29
     */
30
    private $uuid;
31
32
    /**
33
     * @ORM\Column(type="string")
34
     *
35
     * @JMS\Groups({"users", "guild"})
36
     * @JMS\Expose
37
     */
38
    private $title;
39
40
    /**
41
     * @ORM\ManyToOne(targetEntity="Guild", inversedBy="users")
42
     * @ORM\JoinColumn(name="guild_id", referencedColumnName="id")
43
     */
44
    private $guild;
45
46
    /**
47
     * Get id.
48
     *
49
     * @return int
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * Set uuid.
58
     *
59
     * @param string $uuid
60
     *
61
     * @return User
62
     */
63
    public function setUuid($uuid)
64
    {
65
        $this->uuid = $uuid;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Get uuid.
72
     *
73
     * @return string
74
     */
75
    public function getUuid()
76
    {
77
        return $this->uuid;
78
    }
79
80
    /**
81
     * Set title.
82
     *
83
     * @param string $title
84
     *
85
     * @return User
86
     */
87
    public function setTitle($title)
88
    {
89
        $this->title = $title;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Get title.
96
     *
97
     * @return string
98
     */
99
    public function getTitle()
100
    {
101
        return $this->title;
102
    }
103
104
    /**
105
     * Set guild.
106
     *
107
     * @param \App\Entity\Guild|null $guild
108
     *
109
     * @return User
110
     */
111
    public function setGuild(\App\Entity\Guild $guild = null)
112
    {
113
        $this->guild = $guild;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get guild.
120
     *
121
     * @return \App\Entity\Guild|null
122
     */
123
    public function getGuild()
124
    {
125
        return $this->guild;
126
    }
127
}
128