src/Entity/Gestiform/Formations/Dossier/PersonalInformations.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Formations\Dossier;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  5. use App\Entity\Gestiform\Formations\Entreprise\Contact;
  6. use App\Repository\Gestiform\Formations\Dossier\PersonalInformationsRepository;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity(repositoryClass=PersonalInformationsRepository::class)
  12.  */
  13. class PersonalInformations extends AbstractEntity
  14. {
  15.     /**
  16.      * @ORM\Column(type="string",nullable=true)
  17.      */
  18.     private ?string $nom null;
  19.     /**
  20.      * @ORM\Column(type="string",nullable=true)
  21.      */
  22.     private ?string $prenom null;
  23.     /**
  24.      * @ORM\Column(type="string",nullable=true)
  25.      */
  26.     private ?string $autresPrenoms null;
  27.     /**
  28.      * @ORM\Column(type="string", length=255,nullable=true)
  29.      */
  30.     private ?string $mobile null;
  31.     /**
  32.      * @ORM\Column(type="string", length=255,nullable=true)
  33.      */
  34.     private ?string $telFixe null;
  35.     /**
  36.      * @ORM\Column(type="string", length=255,nullable=true)
  37.      */
  38.     private ?string $villeNaissance null;
  39.     /**
  40.      * @ORM\Column(type="integer",nullable=true)
  41.      */
  42.     private ?int $departementNaissance null;
  43.     /**
  44.      * @ORM\Column(type="string",nullable=true)
  45.      */
  46.     private ?string $paysNaissance null;
  47.     /**
  48.      * @ORM\Column(type="string",nullable=true)
  49.      */
  50.     private ?string $nationalite null;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private ?string $fonction null;
  55.     /**
  56.      * @ORM\Column(type="string",nullable=true)
  57.      */
  58.     private ?string $handicapRemarques null;
  59.     /**
  60.      * @ORM\Column(type="string", length=255,nullable=true)
  61.      */
  62.     private ?string $connuDoranco null;
  63.     /**
  64.      * @ORM\Column(type="string", length=255,nullable=true)
  65.      */
  66.     private ?string $nir null;
  67.     /**
  68.      * @ORM\Column(type="string", length=100, nullable=true)
  69.      */
  70.     private ?string $numSecuSociale null;
  71.     /**
  72.      * @ORM\Column(type="boolean", nullable=true)
  73.      */
  74.     private ?bool $reconnaissanceHandicap false;
  75.     /**
  76.      * @ORM\Column(type="boolean", nullable=true)
  77.      */
  78.     private ?bool $handicap false;
  79.     /**
  80.      * @ORM\Column(type="boolean", nullable=true)
  81.      */
  82.     private ?bool $rqth false;
  83.     /**
  84.      * @ORM\Column(type="boolean", nullable=true)
  85.      */
  86.     private ?bool $extensionBOE false;
  87.     /**
  88.      * @ORM\Column(type="boolean", nullable=true)
  89.      */
  90.     private ?bool $permisB false;
  91.     /**
  92.      * @ORM\Column(type="boolean", nullable=true)
  93.      */
  94.     private ?bool $vehicule false;
  95.     /**
  96.      * @ORM\Column(type="datetime", nullable=true)
  97.      */
  98.     private ?\DateTime $dateNaissance null;
  99.     /**
  100.      * @ORM\Column(type="datetime", nullable=true)
  101.      */
  102.     private ?\DateTime $dateCarteSejour null;
  103.     /**
  104.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class)
  105.      * @ORM\JoinColumn(nullable=true)
  106.      */
  107.     private ?Masterlistelg $civilite null;
  108.     /**
  109.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class)
  110.      * @ORM\JoinColumn(nullable=true)
  111.      */
  112.     private ?Masterlistelg $categorieNationalite null;
  113.     /**
  114.      * @ORM\Column(type="string", length=100, nullable=true)
  115.      */
  116.     private ?string $nationality null;
  117.     /**
  118.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class,cascade={"persist"})
  119.      * @ORM\JoinColumn(nullable=true)
  120.      */
  121.     private ?Masterlistelg $regimeSocial null;
  122.     /**
  123.      * @ORM\OneToMany(targetEntity=Contact::class,mappedBy="personalInformations",cascade={"all"})
  124.      */
  125.     private Collection $contacts;
  126.     public function __construct()
  127.     {
  128.         $this->contacts = new ArrayCollection();
  129.     }
  130.     public function getMobile(): ?string
  131.     {
  132.         return $this->mobile;
  133.     }
  134.     public function setMobile(?string $mobile): self
  135.     {
  136.         $this->mobile $mobile;
  137.         return $this;
  138.     }
  139.     public function getVilleNaissance(): ?string
  140.     {
  141.         return $this->villeNaissance;
  142.     }
  143.     public function setVilleNaissance(?string $villeNaissance): self
  144.     {
  145.         $this->villeNaissance $villeNaissance;
  146.         return $this;
  147.     }
  148.     public function getPaysNaissance(): ?string
  149.     {
  150.         return $this->paysNaissance;
  151.     }
  152.     public function setPaysNaissance(?string $paysNaissance): self
  153.     {
  154.         $this->paysNaissance $paysNaissance;
  155.         return $this;
  156.     }
  157.     public function getNationalite(): ?string
  158.     {
  159.         return $this->nationalite;
  160.     }
  161.     public function setNationalite(?string $nationalite): self
  162.     {
  163.         $this->nationalite $nationalite;
  164.         return $this;
  165.     }
  166.     public function getDateNaissance(): ?\DateTime
  167.     {
  168.         return $this->dateNaissance;
  169.     }
  170.     public function setDateNaissance(?\DateTime $dateNaissance): self
  171.     {
  172.         $this->dateNaissance $dateNaissance;
  173.         return $this;
  174.     }
  175.     public function getCivilite(): ?Masterlistelg
  176.     {
  177.         if ($this->civilite instanceof \Doctrine\Persistence\Proxy) {
  178.         $this->civilite->__load();
  179.         }
  180.         return $this->civilite;
  181.     }
  182.     public function setCivilite(?Masterlistelg $civilite): self
  183.     {
  184.         $this->civilite $civilite;
  185.         return $this;
  186.     }
  187.     public function getCategorieNationalite(): ?Masterlistelg
  188.     {
  189.         return $this->categorieNationalite;
  190.     }
  191.     public function setCategorieNationalite(?Masterlistelg $categorieNationalite): self
  192.     {
  193.         $this->categorieNationalite $categorieNationalite;
  194.         return $this;
  195.     }
  196.     public function getHandicapRemarques(): ?string
  197.     {
  198.         return $this->handicapRemarques;
  199.     }
  200.     public function setHandicapRemarques(?string $handicapRemarques): self
  201.     {
  202.         $this->handicapRemarques $handicapRemarques;
  203.         return $this;
  204.     }
  205.     public function isReconnaissanceHandicap(): ?bool
  206.     {
  207.         return $this->reconnaissanceHandicap;
  208.     }
  209.     public function setReconnaissanceHandicap(?bool $reconnaissanceHandicap): self
  210.     {
  211.         $this->reconnaissanceHandicap $reconnaissanceHandicap;
  212.         return $this;
  213.     }
  214.     public function isHandicap(): ?bool
  215.     {
  216.         return $this->handicap;
  217.     }
  218.     public function setHandicap(?bool $handicap): self
  219.     {
  220.         $this->handicap $handicap;
  221.         return $this;
  222.     }
  223.     public function getConnuDoranco(): ?string
  224.     {
  225.         return $this->connuDoranco;
  226.     }
  227.     public function setConnuDoranco(?string $connuDoranco): self
  228.     {
  229.         $this->connuDoranco $connuDoranco;
  230.         return $this;
  231.     }
  232.     public function getFullName(): string
  233.     {
  234.         return $this->getCivilite()?->getDesignation() . " . " $this->getNom() . " " $this->getPrenom();
  235.     }
  236.     public function getPrenomNom(): string
  237.     {
  238.         return $this->getPrenom() . " " $this->getNom();
  239.     }
  240.     public function getNom(): ?string
  241.     {
  242.         return $this->nom;
  243.     }
  244.     public function setNom(?string $nom): self
  245.     {
  246.         $this->nom $nom;
  247.         return $this;
  248.     }
  249.     public function getPrenom(): ?string
  250.     {
  251.         return $this->prenom;
  252.     }
  253.     public function setPrenom(?string $prenom): self
  254.     {
  255.         $this->prenom $prenom;
  256.         return $this;
  257.     }
  258.     public function getAutresPrenoms(): ?string
  259.     {
  260.         return $this->autresPrenoms;
  261.     }
  262.     public function setAutresPrenoms(?string $autresPrenoms): self
  263.     {
  264.         $this->autresPrenoms $autresPrenoms;
  265.         return $this;
  266.     }
  267.     public function getFonction(): ?string
  268.     {
  269.         return $this->fonction;
  270.     }
  271.     public function setFonction(?string $fonction): self
  272.     {
  273.         $this->fonction $fonction;
  274.         return $this;
  275.     }
  276.     public function getNationality(): ?string
  277.     {
  278.         return $this->nationality;
  279.     }
  280.     public function setNationality(?string $nationality): self
  281.     {
  282.         $this->nationality $nationality;
  283.         return $this;
  284.     }
  285.     public function getNir(): ?string
  286.     {
  287.         return $this->nir;
  288.     }
  289.     public function setNir(?string $nir): self
  290.     {
  291.         $this->nir $nir;
  292.         return $this;
  293.     }
  294.     public function getDepartementNaissance(): ?int
  295.     {
  296.         return $this->departementNaissance;
  297.     }
  298.     public function setDepartementNaissance(?int $departementNaissance): self
  299.     {
  300.         $this->departementNaissance $departementNaissance;
  301.         return $this;
  302.     }
  303.     public function getDetails(): string
  304.     {
  305.         return $this->getCivilite()?->getDesignation().' '.$this->getNom() . " " $this->getPrenom();
  306.     }
  307.     public function getNumSecuSociale(): ?string
  308.     {
  309.         return $this->numSecuSociale;
  310.     }
  311.     public function setNumSecuSociale(?string $numSecuSociale): self
  312.     {
  313.         $this->numSecuSociale $numSecuSociale;
  314.         return $this;
  315.     }
  316.     public function getRegimeSocial(): ?Masterlistelg
  317.     {
  318.         return $this->regimeSocial;
  319.     }
  320.     public function setRegimeSocial(?Masterlistelg $regimeSocial): self
  321.     {
  322.         $this->regimeSocial $regimeSocial;
  323.         return $this;
  324.     }
  325.     /**
  326.      * @return Collection<int, Contact>
  327.      */
  328.     public function getContacts(): Collection
  329.     {
  330.         return $this->contacts;
  331.     }
  332.     public function addContact(Contact $contact): self
  333.     {
  334.         if (!$this->contacts->contains($contact)) {
  335.             $this->contacts->add($contact);
  336.             $contact->setPersonalInformations($this);
  337.         }
  338.         return $this;
  339.     }
  340.     public function removeContact(Contact $contact): self
  341.     {
  342.         if ($this->contacts->removeElement($contact)) {
  343.             // set the owning side to null (unless already changed)
  344.             if ($contact->getPersonalInformations() === $this) {
  345.                 $contact->setPersonalInformations(null);
  346.             }
  347.         }
  348.         return $this;
  349.     }
  350.     public function getDateCarteSejour(): ?\DateTime
  351.     {
  352.         return $this->dateCarteSejour;
  353.     }
  354.     public function setDateCarteSejour(?\DateTime $dateCarteSejour): self
  355.     {
  356.         $this->dateCarteSejour $dateCarteSejour;
  357.         return $this;
  358.     }
  359.     public function getTelFixe(): ?string
  360.     {
  361.         return $this->telFixe;
  362.     }
  363.     public function setTelFixe(?string $telFixe): self
  364.     {
  365.         $this->telFixe $telFixe;
  366.         return $this;
  367.     }
  368.     public function getRqth(): ?bool
  369.     {
  370.         return $this->rqth;
  371.     }
  372.     public function setRqth(?bool $rqth): self
  373.     {
  374.         $this->rqth $rqth;
  375.         return $this;
  376.     }
  377.     public function getExtensionBOE(): ?bool
  378.     {
  379.         return $this->extensionBOE;
  380.     }
  381.     public function setExtensionBOE(?bool $extensionBOE): self
  382.     {
  383.         $this->extensionBOE $extensionBOE;
  384.         return $this;
  385.     }
  386.     public function getPermisB(): ?bool
  387.     {
  388.         return $this->permisB;
  389.     }
  390.     public function setPermisB(?bool $permisB): self
  391.     {
  392.         $this->permisB $permisB;
  393.         return $this;
  394.     }
  395.     public function getVehicule(): ?bool
  396.     {
  397.         return $this->vehicule;
  398.     }
  399.     public function setVehicule(?bool $vehicule): self
  400.     {
  401.         $this->vehicule $vehicule;
  402.         return $this;
  403.     }
  404. }