Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Profile |
||
15 | { |
||
16 | use EntityIdTrait; |
||
17 | |||
18 | /** |
||
19 | * @ORM\Column(type="string", length=255, nullable=true) |
||
20 | */ |
||
21 | private $full_name; |
||
22 | |||
23 | /** |
||
24 | * @ORM\Column(type="string", length=255, nullable=true) |
||
25 | */ |
||
26 | private $phone; |
||
27 | |||
28 | /** |
||
29 | * @ORM\OneToOne(targetEntity=User::class, inversedBy="profile", cascade={"persist", "remove"}) |
||
30 | * @ORM\JoinColumn(nullable=false) |
||
31 | */ |
||
32 | private $user; |
||
33 | |||
34 | public function getFullName(): ?string |
||
35 | { |
||
36 | return $this->full_name; |
||
37 | } |
||
38 | |||
39 | public function setFullName(?string $full_name): self |
||
44 | } |
||
45 | |||
46 | public function getPhone(): ?string |
||
47 | { |
||
48 | return $this->phone; |
||
49 | } |
||
50 | |||
51 | public function setPhone(?string $phone): self |
||
52 | { |
||
53 | $this->phone = $phone; |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | public function getUser(): ?User |
||
59 | { |
||
60 | return $this->user; |
||
61 | } |
||
62 | |||
63 | public function setUser(User $user): self |
||
68 | } |
||
69 | } |
||
70 |