<?php
namespace App\Entity;
use App\Repository\MarriageCertificateRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=MarriageCertificateRepository::class)
*/
class MarriageCertificate
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $updateAt;
/**
* @ORM\Column(type="string", length=255)
*/
private $firstSpouseName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpouseFather;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpouseMother;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $firstSpouseDateOfBirth;
/**
* @ORM\Column(type="string", length=255)
*/
private $firstSpousePlaceOfBirth;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpouseRace;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpouseGroup;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpousesubdivision;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $firstSpouseRegion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $firstSpouseProfession;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseProfession;
/**
* @ORM\Column(type="string", length=255)
*/
private $secondSpouseName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseFather;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseMother;
/**
* @ORM\Column(type="datetime", length=255, nullable=true)
*/
private $secondSpouseDateOfBirth;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpousePlaceOfBirth;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseRace;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseGroup;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseSubdivision;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $secondSpouseResidence;
/**
* @ORM\Column(type="string", length=255)
*/
private $consentOfSpouses;
/**
* @ORM\Column(type="string", length=255)
*/
private $consentOfTheHeadOfTheFamily;
/**
* @ORM\Column(type="string", length=255)
*/
private $oppositions;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\File(
* maxSize = "1024k",
* mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
*/
private $firstSpouseNic;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\File(
* maxSize = "1024k",
* mimeTypes = {"application/pdf", "application/x-pdf", "image/jpeg", "image/png", "image/webp"})
*/
private $secondSpouseNic;
public function __construct() {
$this->setUpdateAt(new \DateTime());
}
public function getId(): ?int
{
return $this->id;
}
public function getUpdateAt(): ?\DateTimeInterface
{
return $this->updateAt;
}
public function setUpdateAt(\DateTimeInterface $updateAt): self
{
$this->updateAt = $updateAt;
return $this;
}
public function getFirstSpouseName(): ?string
{
return $this->firstSpouseName;
}
public function setFirstSpouseName(string $firstSpouseName): self
{
$this->firstSpouseName = $firstSpouseName;
return $this;
}
public function getFirstSpouseFather(): ?string
{
return $this->firstSpouseFather;
}
public function setFirstSpouseFather(?string $firstSpouseFather): self
{
$this->firstSpouseFather = $firstSpouseFather;
return $this;
}
public function getFirstSpouseMother(): ?string
{
return $this->firstSpouseMother;
}
public function setFirstSpouseMother(?string $firstSpouseMother): self
{
$this->firstSpouseMother = $firstSpouseMother;
return $this;
}
public function getFirstSpouseDateOfBirth(): ?\DateTimeInterface
{
return $this->firstSpouseDateOfBirth;
}
public function setFirstSpouseDateOfBirth(?\DateTimeInterface $firstSpouseDateOfBirth): self
{
$this->firstSpouseDateOfBirth = $firstSpouseDateOfBirth;
return $this;
}
public function getFirstSpousePlaceOfBirth(): ?string
{
return $this->firstSpousePlaceOfBirth;
}
public function setFirstSpousePlaceOfBirth(string $firstSpousePlaceOfBirth): self
{
$this->firstSpousePlaceOfBirth = $firstSpousePlaceOfBirth;
return $this;
}
public function getFirstSpouseRace(): ?string
{
return $this->firstSpouseRace;
}
public function setFirstSpouseRace(?string $firstSpouseRace): self
{
$this->firstSpouseRace = $firstSpouseRace;
return $this;
}
public function getFirstSpouseGroup(): ?string
{
return $this->firstSpouseGroup;
}
public function setFirstSpouseGroup(?string $firstSpouseGroup): self
{
$this->firstSpouseGroup = $firstSpouseGroup;
return $this;
}
public function getFirstSpousesubdivision(): ?string
{
return $this->firstSpousesubdivision;
}
public function setFirstSpousesubdivision(?string $firstSpousesubdivision): self
{
$this->firstSpousesubdivision = $firstSpousesubdivision;
return $this;
}
public function getFirstSpouseRegion(): ?string
{
return $this->firstSpouseRegion;
}
public function setFirstSpouseRegion(?string $firstSpouseRegion): self
{
$this->firstSpouseRegion = $firstSpouseRegion;
return $this;
}
public function getFirstSpouseProfession(): ?string
{
return $this->firstSpouseProfession;
}
public function setFirstSpouseProfession(?string $firstSpouseProfession): self
{
$this->firstSpouseProfession = $firstSpouseProfession;
return $this;
}
public function getSecondSpouseProfession(): ?string
{
return $this->secondSpouseProfession;
}
public function setSecondSpouseProfession(?string $secondSpouseProfession): self
{
$this->secondSpouseProfession = $secondSpouseProfession;
return $this;
}
public function getSecondSpouseName(): ?string
{
return $this->secondSpouseName;
}
public function setSecondSpouseName(string $secondSpouseName): self
{
$this->secondSpouseName = $secondSpouseName;
return $this;
}
public function getSecondSpouseFather(): ?string
{
return $this->secondSpouseFather;
}
public function setSecondSpouseFather(?string $secondSpouseFather): self
{
$this->secondSpouseFather = $secondSpouseFather;
return $this;
}
public function getSecondSpouseMother(): ?string
{
return $this->secondSpouseMother;
}
public function setSecondSpouseMother(?string $secondSpouseMother): self
{
$this->secondSpouseMother = $secondSpouseMother;
return $this;
}
public function getSecondSpouseDateOfBirth(): ?\DateTimeInterface
{
return $this->secondSpouseDateOfBirth;
}
public function setSecondSpouseDateOfBirth(?\DateTimeInterface $secondSpouseDateOfBirth): self
{
$this->secondSpouseDateOfBirth = $secondSpouseDateOfBirth;
return $this;
}
public function getSecondSpousePlaceOfBirth(): ?string
{
return $this->secondSpousePlaceOfBirth;
}
public function setSecondSpousePlaceOfBirth(?string $secondSpousePlaceOfBirth): self
{
$this->secondSpousePlaceOfBirth = $secondSpousePlaceOfBirth;
return $this;
}
public function getSecondSpouseRace(): ?string
{
return $this->secondSpouseRace;
}
public function setSecondSpouseRace(?string $secondSpouseRace): self
{
$this->secondSpouseRace = $secondSpouseRace;
return $this;
}
public function getSecondSpouseGroup(): ?string
{
return $this->secondSpouseGroup;
}
public function setSecondSpouseGroup(?string $secondSpouseGroup): self
{
$this->secondSpouseGroup = $secondSpouseGroup;
return $this;
}
public function getSecondSpouseSubdivision(): ?string
{
return $this->secondSpouseSubdivision;
}
public function setSecondSpouseSubdivision(?string $secondSpouseSubdivision): self
{
$this->secondSpouseSubdivision = $secondSpouseSubdivision;
return $this;
}
public function getSecondSpouseResidence(): ?string
{
return $this->secondSpouseResidence;
}
public function setSecondSpouseResidence(?string $secondSpouseResidence): self
{
$this->secondSpouseResidence = $secondSpouseResidence;
return $this;
}
public function getConsentOfSpouses(): ?string
{
return $this->consentOfSpouses;
}
public function setConsentOfSpouses(string $consentOfSpouses): self
{
$this->consentOfSpouses = $consentOfSpouses;
return $this;
}
public function getConsentOfTheHeadOfTheFamily(): ?string
{
return $this->consentOfTheHeadOfTheFamily;
}
public function setConsentOfTheHeadOfTheFamily(string $consentOfTheHeadOfTheFamily): self
{
$this->consentOfTheHeadOfTheFamily = $consentOfTheHeadOfTheFamily;
return $this;
}
public function getOppositions(): ?string
{
return $this->oppositions;
}
public function setOppositions(string $oppositions): self
{
$this->oppositions = $oppositions;
return $this;
}
public function getFirstSpouseNic(): ?string
{
return $this->firstSpouseNic;
}
public function setFirstSpouseNic(?string $firstSpouseNic): self
{
$this->firstSpouseNic = $firstSpouseNic;
return $this;
}
public function getSecondSpouseNic(): ?string
{
return $this->secondSpouseNic;
}
public function setSecondSpouseNic(?string $secondSpouseNic): self
{
$this->secondSpouseNic = $secondSpouseNic;
return $this;
}
/**
* @ORM\PreUpdate
*/
public function __updateDate() {
$this->setUpdateAt(new \DateTime());
}
}