src/Entity/ProofOfResidence.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProofOfResidenceRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProofOfResidenceRepository::class)
  8.  * @Auditable()
  9.  */
  10. class ProofOfResidence
  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 $dateValidation;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $dateUpdate;
  45.     /**
  46.      * @ORM\Column(type="datetime", nullable=true)
  47.      */
  48.     private $dateIdentification;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=Users::class)
  51.      */
  52.     private $userUpdate;
  53.     /**
  54.      * @ORM\ManyToOne(targetEntity=Users::class)
  55.      */
  56.     private $userValidation;
  57.     /**
  58.      * @ORM\ManyToOne(targetEntity=Identite::class)
  59.      * @ORM\JoinColumn(nullable=false)
  60.      */
  61.     private $beneficiary;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Folder::class)
  64.      */
  65.     private $folder;
  66.     /**
  67.      * @ORM\Column(type="integer", nullable=true)
  68.      */
  69.     private $status;
  70.     /**
  71.      * @ORM\Column(type="boolean")
  72.      */
  73.     private $isDeleted;
  74.     /**
  75.      * @ORM\Column(type="string", length=255, nullable=true)
  76.      */
  77.     private $residenceBond;
  78.     /**
  79.      * @ORM\Column(type="string", length=255, nullable=true)
  80.      */
  81.     private $residenceNumber;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity=Sites::class)
  84.      */
  85.     private $site;
  86.     public function __construct()
  87.     {
  88.         $this->isDeleted false;
  89.         $this->status 1;
  90.         $this->dateCreate = new \DateTime();
  91.     }
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     public function getIsDeleted(): ?bool
  97.     {
  98.         return $this->isDeleted;
  99.     }
  100.     public function setIsDeleted(bool $isDeleted): self
  101.     {
  102.         $this->isDeleted $isDeleted;
  103.         return $this;
  104.     }
  105.     public function getResidenceBond(): ?string
  106.     {
  107.         return $this->residenceBond;
  108.     }
  109.     public function setResidenceBond(string $residenceBond): self
  110.     {
  111.         $this->residenceBond $residenceBond;
  112.         return $this;
  113.     }
  114.     public function getResidenceNumber(): ?string
  115.     {
  116.         return $this->residenceNumber;
  117.     }
  118.     public function setResidenceNumber(string $residenceNumber): self
  119.     {
  120.         $this->residenceNumber $residenceNumber;
  121.         return $this;
  122.     }
  123.     public function getDad(): ?Identite
  124.     {
  125.         return $this->dad;
  126.     }
  127.     public function setDad(?Identite $dad): self
  128.     {
  129.         $this->dad $dad;
  130.         return $this;
  131.     }
  132.     public function getUserCreate(): ?Users
  133.     {
  134.         return $this->userCreate;
  135.     }
  136.     public function setUserCreate(?Users $userCreate): self
  137.     {
  138.         $this->userCreate $userCreate;
  139.         return $this;
  140.     }
  141.     public function getUserValidation(): ?Users
  142.     {
  143.         return $this->userValidation;
  144.     }
  145.     public function setUserValidation(?Users $userValidation): self
  146.     {
  147.         $this->userValidation $userValidation;
  148.         return $this;
  149.     }
  150.     public function getMother(): ?Identite
  151.     {
  152.         return $this->mother;
  153.     }
  154.     public function setMother(?Identite $mother): self
  155.     {
  156.         $this->mother $mother;
  157.         return $this;
  158.     }
  159.     public function getBeneficiary(): ?Identite
  160.     {
  161.         return $this->beneficiary;
  162.     }
  163.     public function setBeneficiary(?Identite $beneficiary): self
  164.     {
  165.         $this->beneficiary $beneficiary;
  166.         return $this;
  167.     }
  168.     public function getFolder(): ?Folder
  169.     {
  170.         return $this->folder;
  171.     }
  172.     public function setFolder(?Folder $folder): self
  173.     {
  174.         $this->folder $folder;
  175.         return $this;
  176.     }
  177.     public function getDateCreate(): ?\DateTimeInterface
  178.     {
  179.         return $this->dateCreate;
  180.     }
  181.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  182.     {
  183.         $this->dateCreate $dateCreate;
  184.         return $this;
  185.     }
  186.     public function getDateValidation(): ?\DateTimeInterface
  187.     {
  188.         return $this->dateValidation;
  189.     }
  190.     public function setDateValidation(\DateTimeInterface $dateValidation): self
  191.     {
  192.         $this->dateValidation $dateValidation;
  193.         return $this;
  194.     }
  195.     public function getDateIdentification(): ?\DateTimeInterface
  196.     {
  197.         return $this->dateIdentification;
  198.     }
  199.     public function setDateIdentification(\DateTimeInterface $dateIdentification): self
  200.     {
  201.         $this->dateIdentification $dateIdentification;
  202.         return $this;
  203.     }
  204.     public function getUserUpdate(): ?Users
  205.     {
  206.         return $this->userUpdate;
  207.     }
  208.     public function setUserUpdate(?Users $userUpdate): self
  209.     {
  210.         $this->userUpdate $userUpdate;
  211.         return $this;
  212.     }
  213.     public function getDateUpdate(): ?\DateTimeInterface
  214.     {
  215.         return $this->dateUpdate;
  216.     }
  217.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  218.     {
  219.         $this->dateUpdate $dateUpdate;
  220.         return $this;
  221.     }
  222.     public function getStatus(): ?int
  223.     {
  224.         return $this->status;
  225.     }
  226.     public function setStatus(?int $status): self
  227.     {
  228.         $this->status $status;
  229.         return $this;
  230.     }
  231.     public function getSite(): ?Sites
  232.     {
  233.         return $this->site;
  234.     }
  235.     public function setSite(?Sites $site): self
  236.     {
  237.         $this->site $site;
  238.         return $this;
  239.     }
  240. }