| Total Complexity | 6 | 
| Total Lines | 48 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 11 | class User  | 
            ||
| 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=Role::class, mappedBy="user")  | 
            ||
| 27 | */  | 
            ||
| 28 | private $role;  | 
            ||
| 29 | |||
| 30 | public function getId(): ?int  | 
            ||
| 31 |     { | 
            ||
| 32 | return $this->id;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | public function getName(): ?string  | 
            ||
| 36 |     { | 
            ||
| 37 | return $this->name;  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | public function setName(string $name): self  | 
            ||
| 41 |     { | 
            ||
| 42 | $this->name = $name;  | 
            ||
| 43 | |||
| 44 | return $this;  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | public function setRole(Role $role)  | 
            ||
| 53 | }  | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | public function getRole()  | 
            ||
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 |