1 | <?php |
||
15 | class UserProfile |
||
16 | { |
||
17 | /** |
||
18 | * @ORM\Id() |
||
19 | * @ORM\GeneratedValue() |
||
20 | * @ORM\Column(type="integer") |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @var UserProfileContacts[]|ArrayCollection |
||
26 | * @ORM\OneToMany(targetEntity="App\Users\Entity\UserProfileContacts", mappedBy="profile", cascade={"persist", "remove"}) |
||
27 | * @ORM\JoinColumn(nullable=true) |
||
28 | * @Groups({"view"}) |
||
29 | */ |
||
30 | private $contacts; |
||
31 | |||
32 | /** |
||
33 | * @ORM\Column(type="string", length=255, nullable=true) |
||
34 | * @Groups({"list", "view"}) |
||
35 | */ |
||
36 | private $first_name; |
||
37 | |||
38 | /** |
||
39 | * @ORM\Column(type="string", length=255, nullable=true) |
||
40 | * @Groups({"list", "view"}) |
||
41 | */ |
||
42 | private $last_name; |
||
43 | |||
44 | /** |
||
45 | * @ORM\Column(type="date", nullable=true) |
||
46 | * @Groups({"view"}) |
||
47 | */ |
||
48 | private $birth_date; |
||
49 | |||
50 | /** |
||
51 | * @ORM\Column(type="string", length=255, nullable=true) |
||
52 | * @Groups({"view"}) |
||
53 | */ |
||
54 | private $about; |
||
55 | |||
56 | /** |
||
57 | * @ORM\Column(type="string", length=255, nullable=true) |
||
58 | * @Groups({"view"}) |
||
59 | */ |
||
60 | private $public_email; |
||
61 | |||
62 | 32 | public function __construct() |
|
66 | |||
67 | /** |
||
68 | * @return mixed |
||
69 | */ |
||
70 | 9 | public function getFirstName() |
|
74 | |||
75 | /** |
||
76 | * @param mixed $first_name |
||
77 | * |
||
78 | * @return UserProfile |
||
79 | */ |
||
80 | 2 | public function setFirstName($first_name) |
|
81 | { |
||
82 | 2 | $this->first_name = $first_name; |
|
83 | |||
84 | 2 | return $this; |
|
85 | } |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | 9 | public function getLastName() |
|
94 | |||
95 | /** |
||
96 | * @param mixed $last_name |
||
97 | * |
||
98 | * @return UserProfile |
||
99 | */ |
||
100 | 2 | public function setLastName($last_name) |
|
101 | { |
||
102 | 2 | $this->last_name = $last_name; |
|
103 | |||
104 | 2 | return $this; |
|
105 | } |
||
106 | |||
107 | /** |
||
108 | * @return mixed |
||
109 | */ |
||
110 | 8 | public function getAbout() |
|
114 | |||
115 | /** |
||
116 | * @param mixed $about |
||
117 | * |
||
118 | * @return UserProfile |
||
119 | */ |
||
120 | 2 | public function setAbout($about) |
|
121 | { |
||
122 | 2 | $this->about = $about; |
|
123 | |||
124 | 2 | return $this; |
|
125 | } |
||
126 | |||
127 | /** |
||
128 | * @return mixed |
||
129 | */ |
||
130 | 8 | public function getPublicEmail() |
|
134 | |||
135 | /** |
||
136 | * @param mixed $public_email |
||
137 | * |
||
138 | * @return UserProfile |
||
139 | */ |
||
140 | 2 | public function setPublicEmail($public_email) |
|
141 | { |
||
142 | 2 | $this->public_email = $public_email; |
|
143 | |||
144 | 2 | return $this; |
|
145 | } |
||
146 | |||
147 | /** |
||
148 | * @return mixed |
||
149 | */ |
||
150 | 1 | public function getId() |
|
154 | |||
155 | /** |
||
156 | * @return mixed |
||
157 | */ |
||
158 | 10 | public function getBirthDate() |
|
162 | |||
163 | /** |
||
164 | * @param \DateTimeInterface $birth_date |
||
165 | * |
||
166 | * @return UserProfile |
||
167 | */ |
||
168 | 3 | public function setBirthDate(\DateTimeInterface $birth_date) |
|
174 | |||
175 | /** |
||
176 | * @return UserProfileContacts[]|ArrayCollection |
||
177 | */ |
||
178 | 10 | public function getContacts() |
|
182 | |||
183 | /** |
||
184 | * @param $name |
||
185 | * @param $url |
||
186 | * |
||
187 | * @return $this |
||
188 | */ |
||
189 | 1 | public function addContacts($name, $url) |
|
196 | } |
||
197 |