<?php
namespace App\Entity;
use App\Repository\StagiairesRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StagiairesRepository::class)
*/
class Stagiaires
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=255)
*/
private $adresse1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse2;
/**
* @ORM\Column(type="string", length=10)
*/
private $codePostal;
/**
* @ORM\Column(type="string", length=255)
*/
private $ville;
/**
* @ORM\Column(type="string", length=255)
*/
private $etat;
/**
* @ORM\Column(type="datetime")
*/
private $dateCreation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $agrementNum;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $domaine;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $diplome1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $diplome2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $diplome3;
/**
* @ORM\Column(type="string", length=14, nullable=true)
*/
private $telephone;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $dispenseDomaine1;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $dispenseDomaine2;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $dispenseDomaine3;
/**
* @ORM\ManyToOne(targetEntity=Agences::class, inversedBy="Stagiaires")
* @ORM\JoinColumn(nullable=false)
*/
private $agence;
/**
* @ORM\OneToMany(targetEntity=Commentaires::class, mappedBy="stagiaires")
*/
private $commentaires;
/**
* @ORM\OneToMany(targetEntity=Convocations::class, mappedBy="Stagiaire")
*/
private $convocations;
/**
* @ORM\OneToMany(targetEntity=InscriptionsFormations::class, mappedBy="stagiaires")
*/
private $stagiaireInscriptions;
/**
* @ORM\OneToMany(targetEntity=PlagesFormations::class, mappedBy="stagiaire")
*/
private $plagesFormations;
/**
* @ORM\OneToMany(targetEntity=Evaluations::class, mappedBy="stagiaire")
*/
private $evaluations;
/**
* @ORM\OneToMany(targetEntity=StagiairesReports::class, mappedBy="stagiaires")
*/
private $stagiairesReports;
/**
* @ORM\OneToMany(targetEntity=Contentieux::class, mappedBy="stagiaire")
*/
private $contentieuxes;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $agrementDateFin;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $accueil240h;
/**
* @ORM\OneToMany(targetEntity=StagiairesAbsences::class, mappedBy="stagiaires")
*/
private $stagiairesAbsences;
public function __construct()
{
$this->commentaires = new ArrayCollection();
$this->convocations = new ArrayCollection();
$this->stagiaireInscriptions = new ArrayCollection();
$this->plagesFormations = new ArrayCollection();
$this->evaluations = new ArrayCollection();
$this->stagiairesReports = new ArrayCollection();
$this->contentieuxes = new ArrayCollection();
$this->stagiairesAbsences = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
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 getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getAdresse1(): ?string
{
return $this->adresse1;
}
public function setAdresse1(string $adresse1): self
{
$this->adresse1 = $adresse1;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getEtat(): ?string
{
return $this->etat;
}
public function setEtat(string $etat): self
{
$this->etat = $etat;
return $this;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->dateCreation;
}
public function setDateCreation(\DateTimeInterface $dateCreation): self
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getAgrementNum(): ?string
{
return $this->agrementNum;
}
public function setAgrementNum(?string $agrementNum): self
{
$this->agrementNum = $agrementNum;
return $this;
}
public function getDomaine(): ?string
{
return $this->domaine;
}
public function setDomaine(string $domaine): self
{
$this->domaine = $domaine;
return $this;
}
public function getAdresse2(): ?string
{
return $this->adresse2;
}
public function setAdresse2(?string $adresse2): self
{
$this->adresse2 = $adresse2;
return $this;
}
public function getDiplome1(): ?string
{
return $this->diplome1;
}
public function setDiplome1(?string $diplome1): self
{
$this->diplome1 = $diplome1;
return $this;
}
public function getDiplome2(): ?string
{
return $this->diplome2;
}
public function setDiplome2(?string $diplome2): self
{
$this->diplome2 = $diplome2;
return $this;
}
public function getDiplome3(): ?string
{
return $this->diplome3;
}
public function setDiplome3(?string $diplome3): self
{
$this->diplome3 = $diplome3;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getDispenseDomaine1(): ?bool
{
return $this->dispenseDomaine1;
}
public function setDispenseDomaine1(?bool $dispenseDomaine1): self
{
$this->dispenseDomaine1 = $dispenseDomaine1;
return $this;
}
public function getDispenseDomaine2(): ?bool
{
return $this->dispenseDomaine2;
}
public function setDispenseDomaine2(?bool $dispenseDomaine2): self
{
$this->dispenseDomaine2 = $dispenseDomaine2;
return $this;
}
public function getDispenseDomaine3(): ?bool
{
return $this->dispenseDomaine3;
}
public function setDispenseDomaine3(?bool $dispenseDomaine3): self
{
$this->dispenseDomaine3 = $dispenseDomaine3;
return $this;
}
public function getAgence(): ?Agences
{
return $this->agence;
}
public function setAgence(?Agences $agence): self
{
$this->agence = $agence;
return $this;
}
/**
* @return Collection|Commentaires[]
*/
public function getCommentaires(): Collection
{
return $this->commentaires;
}
public function addCommentaire(Commentaires $commentaire): self
{
if (!$this->commentaires->contains($commentaire)) {
$this->commentaires[] = $commentaire;
$commentaire->setStagiaires($this);
}
return $this;
}
public function removeCommentaire(Commentaires $commentaire): self
{
if ($this->commentaires->removeElement($commentaire)) {
// set the owning side to null (unless already changed)
if ($commentaire->getStagiaires() === $this) {
$commentaire->setStagiaires(null);
}
}
return $this;
}
/**
* @return Collection|Convocations[]
*/
public function getConvocations(): Collection
{
return $this->convocations;
}
public function addConvocation(Convocations $convocation): self
{
if (!$this->convocations->contains($convocation)) {
$this->convocations[] = $convocation;
$convocation->setStagiaire($this);
}
return $this;
}
public function removeConvocation(Convocations $convocation): self
{
if ($this->convocations->removeElement($convocation)) {
// set the owning side to null (unless already changed)
if ($convocation->getStagiaire() === $this) {
$convocation->setStagiaire(null);
}
}
return $this;
}
/**
* @return Collection|InscriptionsFormations[]
*/
public function getStagiaireInscriptions(): Collection
{
return $this->stagiaireInscriptions;
}
public function addStagiaireInscription(InscriptionsFormations $stagiaireInscription): self
{
if (!$this->stagiaireInscriptions->contains($stagiaireInscription)) {
$this->stagiaireInscriptions[] = $stagiaireInscription;
$stagiaireInscription->setStagiaires($this);
}
return $this;
}
public function removeStagiaireInscription(InscriptionsFormations $stagiaireInscription): self
{
if ($this->stagiaireInscriptions->removeElement($stagiaireInscription)) {
// set the owning side to null (unless already changed)
if ($stagiaireInscription->getStagiaires() === $this) {
$stagiaireInscription->setStagiaires(null);
}
}
return $this;
}
/**
* @return Collection|PlagesFormations[]
*/
public function getPlagesFormations(): Collection
{
return $this->plagesFormations;
}
public function addPlagesFormation(PlagesFormations $plagesFormation): self
{
if (!$this->plagesFormations->contains($plagesFormation)) {
$this->plagesFormations[] = $plagesFormation;
$plagesFormation->setStagiaire($this);
}
return $this;
}
public function removePlagesFormation(PlagesFormations $plagesFormation): self
{
if ($this->plagesFormations->removeElement($plagesFormation)) {
// set the owning side to null (unless already changed)
if ($plagesFormation->getStagiaire() === $this) {
$plagesFormation->setStagiaire(null);
}
}
return $this;
}
/**
* @return Collection|Evaluations[]
*/
public function getEvaluations(): Collection
{
return $this->evaluations;
}
public function addEvaluation(Evaluations $evaluation): self
{
if (!$this->evaluations->contains($evaluation)) {
$this->evaluations[] = $evaluation;
$evaluation->setStagiaire($this);
}
return $this;
}
public function removeEvaluation(Evaluations $evaluation): self
{
if ($this->evaluations->removeElement($evaluation)) {
// set the owning side to null (unless already changed)
if ($evaluation->getStagiaire() === $this) {
$evaluation->setStagiaire(null);
}
}
return $this;
}
/**
* @return Collection|StagiairesReports[]
*/
public function getStagiairesReports(): Collection
{
return $this->stagiairesReports;
}
public function addStagiairesReport(StagiairesReports $stagiairesReport): self
{
if (!$this->stagiairesReports->contains($stagiairesReport)) {
$this->stagiairesReports[] = $stagiairesReport;
$stagiairesReport->setStagiaires($this);
}
return $this;
}
public function removeStagiairesReport(StagiairesReports $stagiairesReport): self
{
if ($this->stagiairesReports->removeElement($stagiairesReport)) {
// set the owning side to null (unless already changed)
if ($stagiairesReport->getStagiaires() === $this) {
$stagiairesReport->setStagiaires(null);
}
}
return $this;
}
/**
* @return Collection|Contentieux[]
*/
public function getContentieuxes(): Collection
{
return $this->contentieuxes;
}
public function addContentieux(Contentieux $contentieux): self
{
if (!$this->contentieuxes->contains($contentieux)) {
$this->contentieuxes[] = $contentieux;
$contentieux->setStagiaire($this);
}
return $this;
}
public function removeContentieux(Contentieux $contentieux): self
{
if ($this->contentieuxes->removeElement($contentieux)) {
// set the owning side to null (unless already changed)
if ($contentieux->getStagiaire() === $this) {
$contentieux->setStagiaire(null);
}
}
return $this;
}
public function getAgrementDateFin(): ?\DateTimeInterface
{
return $this->agrementDateFin;
}
public function setAgrementDateFin(?\DateTimeInterface $agrementDateFin): self
{
$this->agrementDateFin = $agrementDateFin;
return $this;
}
public function getAccueil240h(): ?bool
{
return $this->accueil240h;
}
public function setAccueil240h(?bool $accueil240h): self
{
$this->accueil240h = $accueil240h;
return $this;
}
/**
* @return Collection|StagiairesAbsences[]
*/
public function getStagiairesAbsences(): Collection
{
return $this->stagiairesAbsences;
}
public function addStagiairesAbsence(StagiairesAbsences $stagiairesAbsence): self
{
if (!$this->stagiairesAbsences->contains($stagiairesAbsence)) {
$this->stagiairesAbsences[] = $stagiairesAbsence;
$stagiairesAbsence->setStagiaires($this);
}
return $this;
}
public function removeStagiairesAbsence(StagiairesAbsences $stagiairesAbsence): self
{
if ($this->stagiairesAbsences->removeElement($stagiairesAbsence)) {
// set the owning side to null (unless already changed)
if ($stagiairesAbsence->getStagiaires() === $this) {
$stagiairesAbsence->setStagiaires(null);
}
}
return $this;
}
}