src/Entity/MarriageCertificate.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MarriageCertificateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7. * @ORM\Entity(repositoryClass=MarriageCertificateRepository::class)
  8. */
  9. class MarriageCertificate
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="datetime")
  19. */
  20. private $updateAt;
  21. /**
  22. * @ORM\Column(type="string", length=255)
  23. */
  24. private $firstSpouseName;
  25. /**
  26. * @ORM\Column(type="string", length=255, nullable=true)
  27. */
  28. private $firstSpouseFather;
  29. /**
  30. * @ORM\Column(type="string", length=255, nullable=true)
  31. */
  32. private $firstSpouseMother;
  33. /**
  34. * @ORM\Column(type="datetime", nullable=true)
  35. */
  36. private $firstSpouseDateOfBirth;
  37. /**
  38. * @ORM\Column(type="string", length=255)
  39. */
  40. private $firstSpousePlaceOfBirth;
  41. /**
  42. * @ORM\Column(type="string", length=255, nullable=true)
  43. */
  44. private $firstSpouseRace;
  45. /**
  46. * @ORM\Column(type="string", length=255, nullable=true)
  47. */
  48. private $firstSpouseGroup;
  49. /**
  50. * @ORM\Column(type="string", length=255, nullable=true)
  51. */
  52. private $firstSpousesubdivision;
  53. /**
  54. * @ORM\Column(type="string", length=255,nullable=true)
  55. */
  56. private $firstSpouseRegion;
  57. /**
  58. * @ORM\Column(type="string", length=255, nullable=true)
  59. */
  60. private $firstSpouseProfession;
  61. /**
  62. * @ORM\Column(type="string", length=255, nullable=true)
  63. */
  64. private $secondSpouseProfession;
  65. /**
  66. * @ORM\Column(type="string", length=255)
  67. */
  68. private $secondSpouseName;
  69. /**
  70. * @ORM\Column(type="string", length=255, nullable=true)
  71. */
  72. private $secondSpouseFather;
  73. /**
  74. * @ORM\Column(type="string", length=255, nullable=true)
  75. */
  76. private $secondSpouseMother;
  77. /**
  78. * @ORM\Column(type="datetime", length=255, nullable=true)
  79. */
  80. private $secondSpouseDateOfBirth;
  81. /**
  82. * @ORM\Column(type="string", length=255, nullable=true)
  83. */
  84. private $secondSpousePlaceOfBirth;
  85. /**
  86. * @ORM\Column(type="string", length=255, nullable=true)
  87. */
  88. private $secondSpouseRace;
  89. /**
  90. * @ORM\Column(type="string", length=255, nullable=true)
  91. */
  92. private $secondSpouseGroup;
  93. /**
  94. * @ORM\Column(type="string", length=255, nullable=true)
  95. */
  96. private $secondSpouseSubdivision;
  97. /**
  98. * @ORM\Column(type="string", length=255, nullable=true)
  99. */
  100. private $secondSpouseResidence;
  101. /**
  102. * @ORM\Column(type="string", length=255)
  103. */
  104. private $consentOfSpouses;
  105. /**
  106. * @ORM\Column(type="string", length=255)
  107. */
  108. private $consentOfTheHeadOfTheFamily;
  109. /**
  110. * @ORM\Column(type="string", length=255)
  111. */
  112. private $oppositions;
  113. /**
  114. * @ORM\Column(type="string", length=255, nullable=true)
  115. * @Assert\File(
  116. * maxSize = "1024k",
  117. * mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
  118. */
  119. private $firstSpouseNic;
  120. /**
  121. * @ORM\Column(type="string", length=255, nullable=true)
  122. * @Assert\File(
  123. * maxSize = "1024k",
  124. * mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
  125. */
  126. private $secondSpouseNic;
  127. public function __construct() {
  128. $this->setUpdateAt(new \DateTime());
  129. }
  130. public function getId(): ?int
  131. {
  132. return $this->id;
  133. }
  134. public function getUpdateAt(): ?\DateTimeInterface
  135. {
  136. return $this->updateAt;
  137. }
  138. public function setUpdateAt(\DateTimeInterface $updateAt): self
  139. {
  140. $this->updateAt = $updateAt;
  141. return $this;
  142. }
  143. public function getFirstSpouseName(): ?string
  144. {
  145. return $this->firstSpouseName;
  146. }
  147. public function setFirstSpouseName(string $firstSpouseName): self
  148. {
  149. $this->firstSpouseName = $firstSpouseName;
  150. return $this;
  151. }
  152. public function getFirstSpouseFather(): ?string
  153. {
  154. return $this->firstSpouseFather;
  155. }
  156. public function setFirstSpouseFather(?string $firstSpouseFather): self
  157. {
  158. $this->firstSpouseFather = $firstSpouseFather;
  159. return $this;
  160. }
  161. public function getFirstSpouseMother(): ?string
  162. {
  163. return $this->firstSpouseMother;
  164. }
  165. public function setFirstSpouseMother(?string $firstSpouseMother): self
  166. {
  167. $this->firstSpouseMother = $firstSpouseMother;
  168. return $this;
  169. }
  170. public function getFirstSpouseDateOfBirth(): ?\DateTimeInterface
  171. {
  172. return $this->firstSpouseDateOfBirth;
  173. }
  174. public function setFirstSpouseDateOfBirth(?\DateTimeInterface $firstSpouseDateOfBirth): self
  175. {
  176. $this->firstSpouseDateOfBirth = $firstSpouseDateOfBirth;
  177. return $this;
  178. }
  179. public function getFirstSpousePlaceOfBirth(): ?string
  180. {
  181. return $this->firstSpousePlaceOfBirth;
  182. }
  183. public function setFirstSpousePlaceOfBirth(string $firstSpousePlaceOfBirth): self
  184. {
  185. $this->firstSpousePlaceOfBirth = $firstSpousePlaceOfBirth;
  186. return $this;
  187. }
  188. public function getFirstSpouseRace(): ?string
  189. {
  190. return $this->firstSpouseRace;
  191. }
  192. public function setFirstSpouseRace(?string $firstSpouseRace): self
  193. {
  194. $this->firstSpouseRace = $firstSpouseRace;
  195. return $this;
  196. }
  197. public function getFirstSpouseGroup(): ?string
  198. {
  199. return $this->firstSpouseGroup;
  200. }
  201. public function setFirstSpouseGroup(?string $firstSpouseGroup): self
  202. {
  203. $this->firstSpouseGroup = $firstSpouseGroup;
  204. return $this;
  205. }
  206. public function getFirstSpousesubdivision(): ?string
  207. {
  208. return $this->firstSpousesubdivision;
  209. }
  210. public function setFirstSpousesubdivision(?string $firstSpousesubdivision): self
  211. {
  212. $this->firstSpousesubdivision = $firstSpousesubdivision;
  213. return $this;
  214. }
  215. public function getFirstSpouseRegion(): ?string
  216. {
  217. return $this->firstSpouseRegion;
  218. }
  219. public function setFirstSpouseRegion(?string $firstSpouseRegion): self
  220. {
  221. $this->firstSpouseRegion = $firstSpouseRegion;
  222. return $this;
  223. }
  224. public function getFirstSpouseProfession(): ?string
  225. {
  226. return $this->firstSpouseProfession;
  227. }
  228. public function setFirstSpouseProfession(?string $firstSpouseProfession): self
  229. {
  230. $this->firstSpouseProfession = $firstSpouseProfession;
  231. return $this;
  232. }
  233. public function getSecondSpouseProfession(): ?string
  234. {
  235. return $this->secondSpouseProfession;
  236. }
  237. public function setSecondSpouseProfession(?string $secondSpouseProfession): self
  238. {
  239. $this->secondSpouseProfession = $secondSpouseProfession;
  240. return $this;
  241. }
  242. public function getSecondSpouseName(): ?string
  243. {
  244. return $this->secondSpouseName;
  245. }
  246. public function setSecondSpouseName(string $secondSpouseName): self
  247. {
  248. $this->secondSpouseName = $secondSpouseName;
  249. return $this;
  250. }
  251. public function getSecondSpouseFather(): ?string
  252. {
  253. return $this->secondSpouseFather;
  254. }
  255. public function setSecondSpouseFather(?string $secondSpouseFather): self
  256. {
  257. $this->secondSpouseFather = $secondSpouseFather;
  258. return $this;
  259. }
  260. public function getSecondSpouseMother(): ?string
  261. {
  262. return $this->secondSpouseMother;
  263. }
  264. public function setSecondSpouseMother(?string $secondSpouseMother): self
  265. {
  266. $this->secondSpouseMother = $secondSpouseMother;
  267. return $this;
  268. }
  269. public function getSecondSpouseDateOfBirth(): ?\DateTimeInterface
  270. {
  271. return $this->secondSpouseDateOfBirth;
  272. }
  273. public function setSecondSpouseDateOfBirth(?\DateTimeInterface $secondSpouseDateOfBirth): self
  274. {
  275. $this->secondSpouseDateOfBirth = $secondSpouseDateOfBirth;
  276. return $this;
  277. }
  278. public function getSecondSpousePlaceOfBirth(): ?string
  279. {
  280. return $this->secondSpousePlaceOfBirth;
  281. }
  282. public function setSecondSpousePlaceOfBirth(?string $secondSpousePlaceOfBirth): self
  283. {
  284. $this->secondSpousePlaceOfBirth = $secondSpousePlaceOfBirth;
  285. return $this;
  286. }
  287. public function getSecondSpouseRace(): ?string
  288. {
  289. return $this->secondSpouseRace;
  290. }
  291. public function setSecondSpouseRace(?string $secondSpouseRace): self
  292. {
  293. $this->secondSpouseRace = $secondSpouseRace;
  294. return $this;
  295. }
  296. public function getSecondSpouseGroup(): ?string
  297. {
  298. return $this->secondSpouseGroup;
  299. }
  300. public function setSecondSpouseGroup(?string $secondSpouseGroup): self
  301. {
  302. $this->secondSpouseGroup = $secondSpouseGroup;
  303. return $this;
  304. }
  305. public function getSecondSpouseSubdivision(): ?string
  306. {
  307. return $this->secondSpouseSubdivision;
  308. }
  309. public function setSecondSpouseSubdivision(?string $secondSpouseSubdivision): self
  310. {
  311. $this->secondSpouseSubdivision = $secondSpouseSubdivision;
  312. return $this;
  313. }
  314. public function getSecondSpouseResidence(): ?string
  315. {
  316. return $this->secondSpouseResidence;
  317. }
  318. public function setSecondSpouseResidence(?string $secondSpouseResidence): self
  319. {
  320. $this->secondSpouseResidence = $secondSpouseResidence;
  321. return $this;
  322. }
  323. public function getConsentOfSpouses(): ?string
  324. {
  325. return $this->consentOfSpouses;
  326. }
  327. public function setConsentOfSpouses(string $consentOfSpouses): self
  328. {
  329. $this->consentOfSpouses = $consentOfSpouses;
  330. return $this;
  331. }
  332. public function getConsentOfTheHeadOfTheFamily(): ?string
  333. {
  334. return $this->consentOfTheHeadOfTheFamily;
  335. }
  336. public function setConsentOfTheHeadOfTheFamily(string $consentOfTheHeadOfTheFamily): self
  337. {
  338. $this->consentOfTheHeadOfTheFamily = $consentOfTheHeadOfTheFamily;
  339. return $this;
  340. }
  341. public function getOppositions(): ?string
  342. {
  343. return $this->oppositions;
  344. }
  345. public function setOppositions(string $oppositions): self
  346. {
  347. $this->oppositions = $oppositions;
  348. return $this;
  349. }
  350. public function getFirstSpouseNic(): ?string
  351. {
  352. return $this->firstSpouseNic;
  353. }
  354. public function setFirstSpouseNic(?string $firstSpouseNic): self
  355. {
  356. $this->firstSpouseNic = $firstSpouseNic;
  357. return $this;
  358. }
  359. public function getSecondSpouseNic(): ?string
  360. {
  361. return $this->secondSpouseNic;
  362. }
  363. public function setSecondSpouseNic(?string $secondSpouseNic): self
  364. {
  365. $this->secondSpouseNic = $secondSpouseNic;
  366. return $this;
  367. }
  368. /**
  369. * @ORM\PreUpdate
  370. */
  371. public function __updateDate() {
  372. $this->setUpdateAt(new \DateTime());
  373. }
  374. }