src/Entity/BirthCertificate.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BirthCertificateRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=BirthCertificateRepository::class)
  8.  * @Auditable()
  9.  */
  10. class BirthCertificate
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Identite::class)
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $dad;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Identite::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $mother;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $dateCreate;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Users")
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $userCreate;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $dateUpdate;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=Users::class)
  43.      */
  44.     private $userUpdate;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity=Identite::class)
  47.      * @ORM\JoinColumn(nullable=false)
  48.      */
  49.     private $child;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Folder::class)
  52.      */
  53.     private $folder;
  54.     /**
  55.      * @ORM\Column(type="integer", nullable=true)
  56.      */
  57.     private $status;
  58.     /**
  59.      * @ORM\Column(type="boolean")
  60.      */
  61.     private $isDeleted;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Sites::class)
  64.      */
  65.     private $site;
  66.     public function __construct()
  67.     {
  68.         $this->isDeleted false;
  69.         $this->status 1;
  70.         $this->dateCreate = new \DateTime();
  71.     }
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getIsDeleted(): ?bool
  77.     {
  78.         return $this->isDeleted;
  79.     }
  80.     public function setIsDeleted(bool $isDeleted): self
  81.     {
  82.         $this->isDeleted $isDeleted;
  83.         return $this;
  84.     }
  85.     public function getDad(): ?Identite
  86.     {
  87.         return $this->dad;
  88.     }
  89.     public function setDad(?Identite $dad): self
  90.     {
  91.         $this->dad $dad;
  92.         return $this;
  93.     }
  94.     public function getUserCreate(): ?Users
  95.     {
  96.         return $this->userCreate;
  97.     }
  98.     public function setUserCreate(?Users $userCreate): self
  99.     {
  100.         $this->userCreate $userCreate;
  101.         return $this;
  102.     }
  103.     public function getMother(): ?Identite
  104.     {
  105.         return $this->mother;
  106.     }
  107.     public function setMother(?Identite $mother): self
  108.     {
  109.         $this->mother $mother;
  110.         return $this;
  111.     }
  112.     public function getChild(): ?Identite
  113.     {
  114.         return $this->child;
  115.     }
  116.     public function setChild(?Identite $child): self
  117.     {
  118.         $this->child $child;
  119.         return $this;
  120.     }
  121.     public function getFolder(): ?Folder
  122.     {
  123.         return $this->folder;
  124.     }
  125.     public function setFolder(?Folder $folder): self
  126.     {
  127.         $this->folder $folder;
  128.         return $this;
  129.     }
  130.     public function getDateCreate(): ?\DateTimeInterface
  131.     {
  132.         return $this->dateCreate;
  133.     }
  134.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  135.     {
  136.         $this->dateCreate $dateCreate;
  137.         return $this;
  138.     }
  139.     public function getUserUpdate(): ?Users
  140.     {
  141.         return $this->userUpdate;
  142.     }
  143.     public function setUserUpdate(?Users $userUpdate): self
  144.     {
  145.         $this->userUpdate $userUpdate;
  146.         return $this;
  147.     }
  148.     public function getDateUpdate(): ?\DateTimeInterface
  149.     {
  150.         return $this->dateUpdate;
  151.     }
  152.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  153.     {
  154.         $this->dateUpdate $dateUpdate;
  155.         return $this;
  156.     }
  157.     public function getStatus(): ?int
  158.     {
  159.         return $this->status;
  160.     }
  161.     public function setStatus(?int $status): self
  162.     {
  163.         $this->status $status;
  164.         return $this;
  165.     }
  166.     public function getSite(): ?Sites
  167.     {
  168.         return $this->site;
  169.     }
  170.     public function setSite(?Sites $site): self
  171.     {
  172.         $this->site $site;
  173.         return $this;
  174.     }
  175. }