<?php
namespace App\Entity\Gestiform\Formations\Dossier;
use App\Entity\AbstractEntity;
use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
use App\Entity\Gestiform\Formations\Entreprise\Contact;
use App\Repository\Gestiform\Formations\Dossier\PersonalInformationsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PersonalInformationsRepository::class)
*/
class PersonalInformations extends AbstractEntity
{
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $nom = null;
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $prenom = null;
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $autresPrenoms = null;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private ?string $mobile = null;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private ?string $telFixe = null;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private ?string $villeNaissance = null;
/**
* @ORM\Column(type="integer",nullable=true)
*/
private ?int $departementNaissance = null;
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $paysNaissance = null;
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $nationalite = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $fonction = null;
/**
* @ORM\Column(type="string",nullable=true)
*/
private ?string $handicapRemarques = null;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private ?string $connuDoranco = null;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private ?string $nir = null;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private ?string $numSecuSociale = null;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $reconnaissanceHandicap = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $handicap = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $rqth = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $extensionBOE = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $permisB = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $vehicule = false;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateNaissance = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $dateCarteSejour = null;
/**
* @ORM\ManyToOne(targetEntity=Masterlistelg::class)
* @ORM\JoinColumn(nullable=true)
*/
private ?Masterlistelg $civilite = null;
/**
* @ORM\ManyToOne(targetEntity=Masterlistelg::class)
* @ORM\JoinColumn(nullable=true)
*/
private ?Masterlistelg $categorieNationalite = null;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private ?string $nationality = null;
/**
* @ORM\ManyToOne(targetEntity=Masterlistelg::class,cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private ?Masterlistelg $regimeSocial = null;
/**
* @ORM\OneToMany(targetEntity=Contact::class,mappedBy="personalInformations",cascade={"all"})
*/
private Collection $contacts;
public function __construct()
{
$this->contacts = new ArrayCollection();
}
public function getMobile(): ?string
{
return $this->mobile;
}
public function setMobile(?string $mobile): self
{
$this->mobile = $mobile;
return $this;
}
public function getVilleNaissance(): ?string
{
return $this->villeNaissance;
}
public function setVilleNaissance(?string $villeNaissance): self
{
$this->villeNaissance = $villeNaissance;
return $this;
}
public function getPaysNaissance(): ?string
{
return $this->paysNaissance;
}
public function setPaysNaissance(?string $paysNaissance): self
{
$this->paysNaissance = $paysNaissance;
return $this;
}
public function getNationalite(): ?string
{
return $this->nationalite;
}
public function setNationalite(?string $nationalite): self
{
$this->nationalite = $nationalite;
return $this;
}
public function getDateNaissance(): ?\DateTime
{
return $this->dateNaissance;
}
public function setDateNaissance(?\DateTime $dateNaissance): self
{
$this->dateNaissance = $dateNaissance;
return $this;
}
public function getCivilite(): ?Masterlistelg
{
if ($this->civilite instanceof \Doctrine\Persistence\Proxy) {
$this->civilite->__load();
}
return $this->civilite;
}
public function setCivilite(?Masterlistelg $civilite): self
{
$this->civilite = $civilite;
return $this;
}
public function getCategorieNationalite(): ?Masterlistelg
{
return $this->categorieNationalite;
}
public function setCategorieNationalite(?Masterlistelg $categorieNationalite): self
{
$this->categorieNationalite = $categorieNationalite;
return $this;
}
public function getHandicapRemarques(): ?string
{
return $this->handicapRemarques;
}
public function setHandicapRemarques(?string $handicapRemarques): self
{
$this->handicapRemarques = $handicapRemarques;
return $this;
}
public function isReconnaissanceHandicap(): ?bool
{
return $this->reconnaissanceHandicap;
}
public function setReconnaissanceHandicap(?bool $reconnaissanceHandicap): self
{
$this->reconnaissanceHandicap = $reconnaissanceHandicap;
return $this;
}
public function isHandicap(): ?bool
{
return $this->handicap;
}
public function setHandicap(?bool $handicap): self
{
$this->handicap = $handicap;
return $this;
}
public function getConnuDoranco(): ?string
{
return $this->connuDoranco;
}
public function setConnuDoranco(?string $connuDoranco): self
{
$this->connuDoranco = $connuDoranco;
return $this;
}
public function getFullName(): string
{
return $this->getCivilite()?->getDesignation() . " . " . $this->getNom() . " " . $this->getPrenom();
}
public function getPrenomNom(): string
{
return $this->getPrenom() . " " . $this->getNom();
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getAutresPrenoms(): ?string
{
return $this->autresPrenoms;
}
public function setAutresPrenoms(?string $autresPrenoms): self
{
$this->autresPrenoms = $autresPrenoms;
return $this;
}
public function getFonction(): ?string
{
return $this->fonction;
}
public function setFonction(?string $fonction): self
{
$this->fonction = $fonction;
return $this;
}
public function getNationality(): ?string
{
return $this->nationality;
}
public function setNationality(?string $nationality): self
{
$this->nationality = $nationality;
return $this;
}
public function getNir(): ?string
{
return $this->nir;
}
public function setNir(?string $nir): self
{
$this->nir = $nir;
return $this;
}
public function getDepartementNaissance(): ?int
{
return $this->departementNaissance;
}
public function setDepartementNaissance(?int $departementNaissance): self
{
$this->departementNaissance = $departementNaissance;
return $this;
}
public function getDetails(): string
{
return $this->getCivilite()?->getDesignation().' '.$this->getNom() . " " . $this->getPrenom();
}
public function getNumSecuSociale(): ?string
{
return $this->numSecuSociale;
}
public function setNumSecuSociale(?string $numSecuSociale): self
{
$this->numSecuSociale = $numSecuSociale;
return $this;
}
public function getRegimeSocial(): ?Masterlistelg
{
return $this->regimeSocial;
}
public function setRegimeSocial(?Masterlistelg $regimeSocial): self
{
$this->regimeSocial = $regimeSocial;
return $this;
}
/**
* @return Collection<int, Contact>
*/
public function getContacts(): Collection
{
return $this->contacts;
}
public function addContact(Contact $contact): self
{
if (!$this->contacts->contains($contact)) {
$this->contacts->add($contact);
$contact->setPersonalInformations($this);
}
return $this;
}
public function removeContact(Contact $contact): self
{
if ($this->contacts->removeElement($contact)) {
// set the owning side to null (unless already changed)
if ($contact->getPersonalInformations() === $this) {
$contact->setPersonalInformations(null);
}
}
return $this;
}
public function getDateCarteSejour(): ?\DateTime
{
return $this->dateCarteSejour;
}
public function setDateCarteSejour(?\DateTime $dateCarteSejour): self
{
$this->dateCarteSejour = $dateCarteSejour;
return $this;
}
public function getTelFixe(): ?string
{
return $this->telFixe;
}
public function setTelFixe(?string $telFixe): self
{
$this->telFixe = $telFixe;
return $this;
}
public function getRqth(): ?bool
{
return $this->rqth;
}
public function setRqth(?bool $rqth): self
{
$this->rqth = $rqth;
return $this;
}
public function getExtensionBOE(): ?bool
{
return $this->extensionBOE;
}
public function setExtensionBOE(?bool $extensionBOE): self
{
$this->extensionBOE = $extensionBOE;
return $this;
}
public function getPermisB(): ?bool
{
return $this->permisB;
}
public function setPermisB(?bool $permisB): self
{
$this->permisB = $permisB;
return $this;
}
public function getVehicule(): ?bool
{
return $this->vehicule;
}
public function setVehicule(?bool $vehicule): self
{
$this->vehicule = $vehicule;
return $this;
}
}