Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class Role |
||
12 | { |
||
13 | /** |
||
14 | * @ORM\Id |
||
15 | * @ORM\GeneratedValue |
||
16 | * @ORM\Column(type="integer") |
||
17 | */ |
||
18 | private $id; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string") |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @ORM\OneToOne(targetEntity=User::class, inversedBy="role") |
||
27 | * @ORM\JoinColumn(nullable=false) |
||
28 | */ |
||
29 | private $user; |
||
30 | |||
31 | public function getId() |
||
34 | } |
||
35 | |||
36 | public function getName() |
||
37 | { |
||
38 | return $this->name; |
||
39 | } |
||
40 | |||
41 | public function setName($name) |
||
42 | { |
||
43 | $this->name = $name; |
||
44 | } |
||
45 | |||
46 | public function getUser() |
||
49 | } |
||
50 | |||
51 | public function setUser(User $user) |
||
60 |