src/Entity/DeathCertificate.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DeathCertificateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7. * @ORM\Entity(repositoryClass=DeathCertificateRepository::class)
  8. */
  9. class DeathCertificate
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. private $nameOfTheDeadPerson;
  21. /**
  22. * @ORM\Column(type="string", length=255, nullable=true)
  23. */
  24. private $surnameOfTheDeadPerson;
  25. /**
  26. * @ORM\Column(type="datetime")
  27. */
  28. private $dateOfBirth;
  29. /**
  30. * @ORM\Column(type="string", length=255)
  31. */
  32. private $sex;
  33. /**
  34. * @ORM\Column(type="string", length=255, nullable=true)
  35. */
  36. private $maritalStatus;
  37. /**
  38. * @ORM\Column(type="string", length=255, nullable=true)
  39. */
  40. private $profession;
  41. /**
  42. * @ORM\Column(type="string", length=255, nullable=true)
  43. */
  44. private $placeOfResidence;
  45. /**
  46. * @ORM\Column(type="string", length=255, nullable=true)
  47. */
  48. private $fatherSName;
  49. /**
  50. * @ORM\Column(type="string", length=255, nullable=true)
  51. */
  52. private $motherSName;
  53. /**
  54. * @ORM\Column(type="string", length=255)
  55. */
  56. private $declaring;
  57. /**
  58. * @ORM\Column(type="string", length=255)
  59. */
  60. private $declarantStatus;
  61. /**
  62. * @ORM\Column(type="string", length=255, nullable=true)
  63. */
  64. private $professionOfDeclarant;
  65. /**
  66. * @ORM\Column(type="string", length=255)
  67. */
  68. private $declarantQuality;
  69. /**
  70. * @ORM\Column(type="string", length=255)
  71. */
  72. private $firstWitness;
  73. /**
  74. * @ORM\Column(type="string", length=255, nullable=true)
  75. */
  76. private $firstWitnessProfession;
  77. /**
  78. * @ORM\Column(type="string", length=255, nullable=true)
  79. */
  80. private $firstWitnessResidence;
  81. /**
  82. * @ORM\Column(type="string", length=255)
  83. */
  84. private $secondWitness;
  85. /**
  86. * @ORM\Column(type="string", length=255, nullable=true)
  87. */
  88. private $secondWitnessProfession;
  89. /**
  90. * @ORM\Column(type="string", length=255, nullable=true)
  91. */
  92. private $secondWitnessResidence;
  93. /**
  94. * @ORM\Column(type="datetime")
  95. */
  96. private $updateAt;
  97. /**
  98. * @ORM\Column(type="string", length=255, nullable=true)
  99. * @Assert\File(
  100. * maxSize = "1024k",
  101. * mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
  102. *
  103. * )
  104. */
  105. private $deathPersonNic;
  106. /**
  107. * @ORM\Column(type="string", length=255, nullable=true)
  108. * @Assert\File(
  109. * maxSize = "1024k",
  110. * mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
  111. */
  112. private $declarantNic;
  113. /**
  114. * @ORM\ManyToOne(targetEntity=Hospital::class, inversedBy="deathCertificates")
  115. */
  116. private $placeOfDeath;
  117. public function __construct() {
  118. $this->setUpdateAt(new \DateTime());
  119. }
  120. public function getId(): ?int
  121. {
  122. return $this->id;
  123. }
  124. public function getNameOfTheDeadPerson(): ?string
  125. {
  126. return $this->nameOfTheDeadPerson;
  127. }
  128. public function setNameOfTheDeadPerson(string $nameOfTheDeadPerson): self
  129. {
  130. $this->nameOfTheDeadPerson = $nameOfTheDeadPerson;
  131. return $this;
  132. }
  133. public function getSurnameOfTheDeadPerson(): ?string
  134. {
  135. return $this->surnameOfTheDeadPerson;
  136. }
  137. public function setSurnameOfTheDeadPerson(?string $surnameOfTheDeadPerson): self
  138. {
  139. $this->surnameOfTheDeadPerson = $surnameOfTheDeadPerson;
  140. return $this;
  141. }
  142. public function getDateOfBirth(): ?\DateTimeInterface
  143. {
  144. return $this->dateOfBirth;
  145. }
  146. public function setDateOfBirth(\DateTimeInterface $dateOfBirth): self
  147. {
  148. $this->dateOfBirth = $dateOfBirth;
  149. return $this;
  150. }
  151. public function getSex(): ?string
  152. {
  153. return $this->sex;
  154. }
  155. public function setSex(string $sex): self
  156. {
  157. $this->sex = $sex;
  158. return $this;
  159. }
  160. public function getMaritalStatus(): ?string
  161. {
  162. return $this->maritalStatus;
  163. }
  164. public function setMaritalStatus(?string $maritalStatus): self
  165. {
  166. $this->maritalStatus = $maritalStatus;
  167. return $this;
  168. }
  169. public function getProfession(): ?string
  170. {
  171. return $this->profession;
  172. }
  173. public function setProfession(?string $profession): self
  174. {
  175. $this->profession = $profession;
  176. return $this;
  177. }
  178. public function getPlaceOfResidence(): ?string
  179. {
  180. return $this->placeOfResidence;
  181. }
  182. public function setPlaceOfResidence(?string $placeOfResidence): self
  183. {
  184. $this->placeOfResidence = $placeOfResidence;
  185. return $this;
  186. }
  187. public function getFatherSName(): ?string
  188. {
  189. return $this->fatherSName;
  190. }
  191. public function setFatherSName(?string $fatherSName): self
  192. {
  193. $this->fatherSName = $fatherSName;
  194. return $this;
  195. }
  196. public function getMotherSName(): ?string
  197. {
  198. return $this->motherSName;
  199. }
  200. public function setMotherSName(?string $motherSName): self
  201. {
  202. $this->motherSName = $motherSName;
  203. return $this;
  204. }
  205. public function getDeclaring(): ?string
  206. {
  207. return $this->declaring;
  208. }
  209. public function setDeclaring(string $declaring): self
  210. {
  211. $this->declaring = $declaring;
  212. return $this;
  213. }
  214. public function getDeclarantStatus(): ?string
  215. {
  216. return $this->declarantStatus;
  217. }
  218. public function setDeclarantStatus(string $declarantStatus): self
  219. {
  220. $this->declarantStatus = $declarantStatus;
  221. return $this;
  222. }
  223. public function getProfessionOfDeclarant(): ?string
  224. {
  225. return $this->professionOfDeclarant;
  226. }
  227. public function setProfessionOfDeclarant(?string $professionOfDeclarant): self
  228. {
  229. $this->professionOfDeclarant = $professionOfDeclarant;
  230. return $this;
  231. }
  232. public function getDeclarantQuality(): ?string
  233. {
  234. return $this->declarantQuality;
  235. }
  236. public function setDeclarantQuality(string $declarantQuality): self
  237. {
  238. $this->declarantQuality = $declarantQuality;
  239. return $this;
  240. }
  241. public function getFirstWitness(): ?string
  242. {
  243. return $this->firstWitness;
  244. }
  245. public function setFirstWitness(string $firstWitness): self
  246. {
  247. $this->firstWitness = $firstWitness;
  248. return $this;
  249. }
  250. public function getFirstWitnessProfession(): ?string
  251. {
  252. return $this->firstWitnessProfession;
  253. }
  254. public function setFirstWitnessProfession(?string $firstWitnessProfession): self
  255. {
  256. $this->firstWitnessProfession = $firstWitnessProfession;
  257. return $this;
  258. }
  259. public function getFirstWitnessResidence(): ?string
  260. {
  261. return $this->firstWitnessResidence;
  262. }
  263. public function setFirstWitnessResidence(?string $firstWitnessResidence): self
  264. {
  265. $this->firstWitnessResidence = $firstWitnessResidence;
  266. return $this;
  267. }
  268. public function getSecondWitness(): ?string
  269. {
  270. return $this->secondWitness;
  271. }
  272. public function setSecondWitness(string $secondWitness): self
  273. {
  274. $this->secondWitness = $secondWitness;
  275. return $this;
  276. }
  277. public function getSecondWitnessProfession(): ?string
  278. {
  279. return $this->secondWitnessProfession;
  280. }
  281. public function setSecondWitnessProfession(?string $secondWitnessProfession): self
  282. {
  283. $this->secondWitnessProfession = $secondWitnessProfession;
  284. return $this;
  285. }
  286. public function getSecondWitnessResidence(): ?string
  287. {
  288. return $this->secondWitnessResidence;
  289. }
  290. public function setSecondWitnessResidence(?string $secondWitnessResidence): self
  291. {
  292. $this->secondWitnessResidence = $secondWitnessResidence;
  293. return $this;
  294. }
  295. public function getUpdateAt(): ?\DateTimeInterface
  296. {
  297. return $this->updateAt;
  298. }
  299. public function setUpdateAt(\DateTimeInterface $updateAt): self
  300. {
  301. $this->updateAt = $updateAt;
  302. return $this;
  303. }
  304. public function getDeathPersonNic(): ?string
  305. {
  306. return $this->deathPersonNic;
  307. }
  308. public function setDeathPersonNic(?string $deathPersonNic): self
  309. {
  310. $this->deathPersonNic = $deathPersonNic;
  311. return $this;
  312. }
  313. public function getDeclarantNic(): ?string
  314. {
  315. return $this->declarantNic;
  316. }
  317. public function setDeclarantNic(?string $declarantNic): self
  318. {
  319. $this->declarantNic = $declarantNic;
  320. return $this;
  321. }
  322. public function getPlaceOfDeath(): ?Hospital
  323. {
  324. return $this->placeOfDeath;
  325. }
  326. public function setPlaceOfDeath(?Hospital $placeOfDeath): self
  327. {
  328. $this->placeOfDeath = $placeOfDeath;
  329. return $this;
  330. }
  331. }