src/Entity/MarriageCertificate.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MarriageCertificateRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=MarriageCertificateRepository::class)
  8.  * @Auditable()
  9.  */
  10. class MarriageCertificate
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Users::class)
  20.      */
  21.     private $userCreate;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Users::class)
  24.      */
  25.     private $userUpdate;
  26.     /**
  27.      * @ORM\Column(type="datetime")
  28.      */
  29.     private $dateCreate;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=true)
  32.      */
  33.     private $dateUpdate;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Identite::class)
  36.      */
  37.     private $man;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Identite::class)
  40.      */
  41.     private $women;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Identite::class)
  44.      */
  45.     private $dad_women;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Identite::class)
  48.      */
  49.     private $dad_man;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Identite::class)
  52.      */
  53.     private $mother_man;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=Identite::class)
  56.      */
  57.     private $mother_women;
  58.     /**
  59.      * @ORM\Column(type="integer", nullable=true)
  60.      */
  61.     private $status;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Identite::class)
  64.      */
  65.     private $witness_1;
  66.     /**
  67.      * @ORM\ManyToOne(targetEntity=Identite::class)
  68.      */
  69.     private $witness_2;
  70.     /**
  71.      * @ORM\Column(type="boolean", nullable=true)
  72.      */
  73.     private $isDeleted;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Sites::class)
  76.      */
  77.     private $site;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity=Regime::class)
  80.      */
  81.     private $regime;
  82.     /**
  83.      * @ORM\Column(type="string", length=255, nullable=true)
  84.      */
  85.     private $authorityName;
  86.     /**
  87.      * @ORM\Column(type="boolean", nullable=true)
  88.      */
  89.     private $isPublished;
  90.     /**
  91.      * @ORM\Column(type="datetime", nullable=true)
  92.      */
  93.     private $datePublish;
  94.     public function __construct()
  95.     {
  96.         $this->isDeleted false;
  97.         $this->status 1;
  98.         $this->dateCreate = new \DateTime();
  99.     }
  100.     public function getId(): ?int
  101.     {
  102.         return $this->id;
  103.     }
  104.     public function getUserCreate(): ?Users
  105.     {
  106.         return $this->userCreate;
  107.     }
  108.     public function setUserCreate(?Users $userCreate): self
  109.     {
  110.         $this->userCreate $userCreate;
  111.         return $this;
  112.     }
  113.     public function getUserUpdate(): ?Users
  114.     {
  115.         return $this->userUpdate;
  116.     }
  117.     public function setUserUpdate(?Users $userUpdate): self
  118.     {
  119.         $this->userUpdate $userUpdate;
  120.         return $this;
  121.     }
  122.     public function getDateCreate(): ?\DateTimeInterface
  123.     {
  124.         return $this->dateCreate;
  125.     }
  126.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  127.     {
  128.         $this->dateCreate $dateCreate;
  129.         return $this;
  130.     }
  131.     public function getDateUpdate(): ?\DateTimeInterface
  132.     {
  133.         return $this->dateUpdate;
  134.     }
  135.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  136.     {
  137.         $this->dateUpdate $dateUpdate;
  138.         return $this;
  139.     }
  140.     public function getMan(): ?Identite
  141.     {
  142.         return $this->man;
  143.     }
  144.     public function setMan(?Identite $man): self
  145.     {
  146.         $this->man $man;
  147.         return $this;
  148.     }
  149.     public function getWomen(): ?Identite
  150.     {
  151.         return $this->women;
  152.     }
  153.     public function setWomen(?Identite $women): self
  154.     {
  155.         $this->women $women;
  156.         return $this;
  157.     }
  158.     public function getDadWomen(): ?Identite
  159.     {
  160.         return $this->dad_women;
  161.     }
  162.     public function setDadWomen(?Identite $dad_women): self
  163.     {
  164.         $this->dad_women $dad_women;
  165.         return $this;
  166.     }
  167.     public function getDadMan(): ?Identite
  168.     {
  169.         return $this->dad_man;
  170.     }
  171.     public function setDadMan(?Identite $dad_man): self
  172.     {
  173.         $this->dad_man $dad_man;
  174.         return $this;
  175.     }
  176.     public function getMotherMan(): ?Identite
  177.     {
  178.         return $this->mother_man;
  179.     }
  180.     public function setMotherMan(?Identite $mother_man): self
  181.     {
  182.         $this->mother_man $mother_man;
  183.         return $this;
  184.     }
  185.     public function getMotherWomen(): ?Identite
  186.     {
  187.         return $this->mother_women;
  188.     }
  189.     public function setMotherWomen(?Identite $mother_women): self
  190.     {
  191.         $this->mother_women $mother_women;
  192.         return $this;
  193.     }
  194.     public function getWitness1(): ?Identite
  195.     {
  196.         return $this->witness_1;
  197.     }
  198.     public function setWitness1(?Identite $witness_1): self
  199.     {
  200.         $this->witness_1 $witness_1;
  201.         return $this;
  202.     }
  203.     public function getWitness2(): ?Identite
  204.     {
  205.         return $this->witness_2;
  206.     }
  207.     public function setWitness2(?Identite $witness_2): self
  208.     {
  209.         $this->witness_2 $witness_2;
  210.         return $this;
  211.     }
  212.     public function getIsDeleted(): ?bool
  213.     {
  214.         return $this->isDeleted;
  215.     }
  216.     public function setIsDeleted(?bool $isDeleted): self
  217.     {
  218.         $this->isDeleted $isDeleted;
  219.         return $this;
  220.     }
  221.     public function getSite(): ?Sites
  222.     {
  223.         return $this->site;
  224.     }
  225.     public function setSite(?Sites $site): self
  226.     {
  227.         $this->site $site;
  228.         return $this;
  229.     }
  230.     public function getRegime(): ?Regime
  231.     {
  232.         return $this->regime;
  233.     }
  234.     public function setRegime(?Regime $regime): self
  235.     {
  236.         $this->regime $regime;
  237.         return $this;
  238.     }
  239.     public function getAuthorityName(): ?string
  240.     {
  241.         return $this->authorityName;
  242.     }
  243.     public function setAuthorityName(?string $authorityName): self
  244.     {
  245.         $this->authorityName $authorityName;
  246.         return $this;
  247.     }
  248.     public function getIsPublished(): ?bool
  249.     {
  250.         return $this->isPublished;
  251.     }
  252.     public function setIsPublished(?bool $isPublished): self
  253.     {
  254.         $this->isPublished $isPublished;
  255.         return $this;
  256.     }
  257.     public function getDatePublish(): ?\DateTimeInterface
  258.     {
  259.         return $this->datePublish;
  260.     }
  261.     public function setDatePublish(?\DateTimeInterface $datePublish): self
  262.     {
  263.         $this->datePublish $datePublish;
  264.         return $this;
  265.     }
  266.     public function getStatus(): ?int
  267.     {
  268.         return $this->status;
  269.     }
  270.     public function setStatus(?int $status): self
  271.     {
  272.         $this->status $status;
  273.         return $this;
  274.     }
  275. }