1 | <?php |
||
13 | class Person |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\Id |
||
17 | * @ORM\Column(type="integer") |
||
18 | * @ORM\GeneratedValue |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** @ORM\Column(type="string",length=60,nullable=true) */ |
||
23 | private $firstname; |
||
24 | |||
25 | /** @ORM\Column(type="string",length=60,nullable=true) */ |
||
26 | private $middlename; |
||
27 | |||
28 | /** @ORM\Column(type="string",length=60,nullable=true) */ |
||
29 | private $lastname; |
||
30 | |||
31 | /** @ORM\Column(type="string",length=50,nullable=true) */ |
||
32 | private $aka; |
||
33 | |||
34 | /** |
||
35 | * @ORM\Column(type="date",nullable=true) |
||
36 | * @var DateTime |
||
37 | */ |
||
38 | private $dob; |
||
39 | |||
40 | /** @ORM\Column(type="string",length=50,nullable=true) */ |
||
41 | private $birthplace; |
||
42 | |||
43 | /** |
||
44 | * @var string $country |
||
45 | * @ORM\Column(type="string",length=3,nullable=true) |
||
46 | */ |
||
47 | private $country; |
||
48 | |||
49 | /** @ORM\Column(type="string",length=255,nullable=true) */ |
||
50 | private $image; |
||
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | 8 | public function getId() |
|
59 | |||
60 | /** |
||
61 | * @param int $id |
||
62 | * @return Person |
||
63 | */ |
||
64 | 5 | public function setId($id) |
|
69 | |||
70 | /** |
||
71 | * @return Country|null |
||
72 | * @throws \Del\CountryException |
||
73 | */ |
||
74 | 3 | public function getCountry(): ?Country |
|
78 | |||
79 | /** |
||
80 | * @param Country $country |
||
81 | * @return Person |
||
82 | */ |
||
83 | 5 | public function setCountry(Country $country) |
|
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | 4 | public function getFirstname() |
|
96 | |||
97 | /** |
||
98 | * @param string $firstname |
||
99 | * @return Person |
||
100 | */ |
||
101 | 6 | public function setFirstname($firstname) |
|
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | 3 | public function getMiddlename() |
|
114 | |||
115 | /** |
||
116 | * @param string $middlename |
||
117 | * @return Person |
||
118 | */ |
||
119 | 5 | public function setMiddlename($middlename) |
|
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | 3 | public function getLastname() |
|
132 | |||
133 | /** |
||
134 | * @param string $lastname |
||
135 | * @return Person |
||
136 | */ |
||
137 | 5 | public function setLastname($lastname) |
|
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | 4 | public function getAka() |
|
150 | |||
151 | /** |
||
152 | * @param string $aka |
||
153 | * @return Person |
||
154 | */ |
||
155 | 5 | public function setAka($aka) |
|
160 | |||
161 | /** |
||
162 | * @return DateTime |
||
163 | */ |
||
164 | 3 | public function getDob() |
|
168 | |||
169 | /** |
||
170 | * @param $dob |
||
171 | * @return Person |
||
172 | */ |
||
173 | 5 | public function setDob(DateTime $dob) |
|
178 | |||
179 | /** |
||
180 | * @return string |
||
181 | */ |
||
182 | 3 | public function getBirthplace() |
|
186 | |||
187 | /** |
||
188 | * @param string $birthplace |
||
189 | * @return Person |
||
190 | */ |
||
191 | 5 | public function setBirthplace($birthplace) |
|
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | 1 | public function getImage() |
|
204 | |||
205 | /** |
||
206 | * @param string $image |
||
207 | * @return Person |
||
208 | */ |
||
209 | 1 | public function setImage($image) |
|
214 | |||
215 | /** |
||
216 | * @param bool $includeMiddleNames |
||
217 | * @return string |
||
218 | */ |
||
219 | public function getFullName($includeMiddleNames = false): string |
||
225 | } |
||
226 |