<?php
namespace App\Entity;
use App\Model\Globals;
use App\Repository\DemandeServiceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DemandeServiceRepository::class)]
class DemandeService
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $matriculeFiscal = null;
#[ORM\Column(nullable: true)]
private ?int $statut = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $raisonSociale = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nomCommercial = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $siegeSocialAddress = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $siteProductionAddress = null;
#[ORM\ManyToOne(targetEntity: Gouvernorat::class)]
private ?Gouvernorat $gouvernorat = null;
#[ORM\ManyToOne(targetEntity: Delegation::class)]
private ?Delegation $delegation = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $localite = null;
#[ORM\Column(nullable: true)]
private ?int $codePostal = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tel = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fax = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nomPrenomResponsable = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $codeCnss = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $secteurActivite = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $brancheActivite = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $produitServiceRendu = null;
#[ORM\Column(nullable: true)]
private ?int $exportatrice = null;
#[ORM\Column(nullable: true)]
private ?bool $isOffshore = null;
#[ORM\Column(nullable: true)]
private ?int $tauxTfp = null;
#[ORM\Column(nullable: true)]
private ?int $regimeTravail = null;
#[ORM\Column(nullable: true)]
private ?float $montantTfpAnneePrec = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nomChargeFormation = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $genre = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $niveauInstruction = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fonction = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $structureAffectation = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $address = null;
#[ORM\Column(nullable: true)]
private ?int $natureDemande = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $chargeProgramme = null;
#[ORM\Column(nullable: true)]
private ?int $objetDemande = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $justifDemande = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $populationCible = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $presentationSecteurActivite = null;
#[ORM\Column(nullable: true)]
private ?int $nbrActif = null;
#[ORM\Column(nullable: true)]
private ?int $nbrEntrepriseCible = null;
#[ORM\Column(nullable: true)]
private ?int $nbrBeneficiaire = null;
#[ORM\Column(nullable: true)]
private ?int $periodePrevisionnelle = null;
#[ORM\Column(nullable: true)]
private ?float $coutFormation = null;
#[ORM\Column(nullable: true)]
private ?int $sourceBesoins = null;
#[ORM\ManyToOne(targetEntity: Service::class)]
private ?Service $service = null;
#[ORM\Column(nullable: true)]
private ?int $etat = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommePermanentCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommePermanentAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommePermanentAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommePermanentTotal = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmePermanentCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmePermanentAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmePermanentAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmePermanentTotal = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeContractuelCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeContractuelAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeContractuelAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeContractuelTotal = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeContractuelCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeContractuelAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeContractuelAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeContractuelTotal = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeOccasionnelCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeOccasionnelAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeOccasionnelAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifHommeOccasionnelTotal = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeOccasionnelCadre = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeOccasionnelAgent = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeOccasionnelAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $effectifFemmeOccasionnelTotal = null;
#[ORM\Column(nullable: true)]
private ?int $totalCadre = null;
#[ORM\Column(nullable: true)]
private ?int $totalAgent = null;
#[ORM\Column(nullable: true)]
private ?int $totalAgentMaitrise = null;
#[ORM\Column(nullable: true)]
private ?int $total = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $updatedAt = null;
#[ORM\Column(nullable: true)]
private ?int $createdBy = null;
#[ORM\Column(nullable: true)]
private ?int $updatedBy = null;
#[ORM\Column(nullable: true)]
private ?bool $isDeleted = null;
#[ORM\Column(nullable: true)]
private ?bool $enabled = null;
#[ORM\Column(nullable: true)]
private ?bool $isVerified = null;
#[ORM\Column(nullable: true)]
private ?int $verifiedBy = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $verifiedAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $deletedAt = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $documents = null;
#[ORM\Column(nullable: true)]
private ?int $validBy = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $validAt = null;
#[ORM\Column(nullable: true)]
private ?int $refusedBy = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $refusedAt = null;
#[ORM\Column(nullable: true)]
private ?bool $assigned = null;
#[ORM\Column(nullable: true)]
private ?bool $isValid = null;
#[ORM\OneToMany(mappedBy: 'demandeService', targetEntity: DemandeAffectation::class)]
private Collection $demandeAffectation;
#[ORM\OneToMany(mappedBy: 'demandeService', targetEntity: DocDemandeClient::class)]
private Collection $docDemandeClient;
#[ORM\OneToMany(mappedBy: 'demandeService', targetEntity: DemandeServiceCandidat::class)]
private Collection $demandeServiceCandidats;
#[ORM\Column(nullable: true)]
private ?bool $acceptDocuments = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $motifRefus = null;
#[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'demandeGroupe')]
private ?self $groupe = null;
#[ORM\OneToMany(mappedBy: 'groupe', targetEntity: self::class)]
private Collection $demandeGroupe;
#[ORM\Column(nullable: true)]
private ?int $processType = Globals::INTERVENTION_PROCESS_TYPE;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nomGroupe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $docDemandeValidated = null;
#[ORM\OneToMany(mappedBy: 'demande', targetEntity: DemandeNote::class, orphanRemoval: true)]
private Collection $demandeNotes;
#[ORM\ManyToOne(inversedBy: 'demandeServices')]
#[ORM\JoinColumn(nullable: true)]
private ?Prestation $prestation = null;
#[ORM\ManyToOne(inversedBy: 'demandes')]
private ?GroupeDemande $groupeDemande = null;
#[ORM\ManyToOne(inversedBy: 'demandeServices')]
private ?Module $module = null;
#[ORM\ManyToOne]
private ?Rubrique $rubrique = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateDebutModule = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateFinModule = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $locationModule = null;
#[ORM\OneToOne(mappedBy: 'demandeService', cascade: ['persist', 'remove'])]
private ?UserFicheSatisfaction $userFicheSatisfaction = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $instanceRepresentative = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $brancheActivitePlan = null;
#[ORM\Column(nullable: true)]
private ?int $year = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $reference = null;
#[ORM\Column(nullable: true)]
private ?int $mode = null;
#[ORM\Column(nullable: true)]
private ?int $nbrEntreprise = null;
#[ORM\Column(nullable: true)]
private ?int $effectif = null;
#[ORM\Column(nullable: true)]
private ?int $duree = null;
#[ORM\Column(nullable: true)]
private ?int $nbrGroupe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $populationCiblePlan = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $modulePlan = null;
#[ORM\ManyToOne]
private ?Gouvernorat $gouvernouratModule = null;
#[ORM\OneToMany(mappedBy: 'demande', targetEntity: Feedback::class)]
private Collection $feedback;
#[ORM\ManyToOne(inversedBy: 'demandeServices')]
private ?User $user = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $cnsscnrps = null;
public function __construct()
{
$this->createdAt = new \DateTime();
$this->demandeAffectation = new ArrayCollection();
$this->docDemandeClient = new ArrayCollection();
$this->demandeServiceCandidats = new ArrayCollection();
$this->demandeGroupe = new ArrayCollection();
$this->demandeNotes = new ArrayCollection();
$this->feedback = new ArrayCollection();
}
public function getMatriculeFiscal(): ?string
{
return $this->matriculeFiscal;
}
public function setMatriculeFiscal(?string $matriculeFiscal): self
{
$this->matriculeFiscal = $matriculeFiscal;
return $this;
}
public function getStatut(): ?int
{
return $this->statut;
}
public function setStatut(?int $statut): self
{
$this->statut = $statut;
return $this;
}
public function getRaisonSociale(): ?string
{
return $this->raisonSociale;
}
public function setRaisonSociale(?string $raisonSociale): self
{
$this->raisonSociale = $raisonSociale;
return $this;
}
public function getNomCommercial(): ?string
{
return $this->nomCommercial;
}
public function setNomCommercial(?string $nomCommercial): self
{
$this->nomCommercial = $nomCommercial;
return $this;
}
public function getSiegeSocialAddress(): ?string
{
return $this->siegeSocialAddress;
}
public function setSiegeSocialAddress(?string $siegeSocialAddress): self
{
$this->siegeSocialAddress = $siegeSocialAddress;
return $this;
}
public function getSiteProductionAddress(): ?string
{
return $this->siteProductionAddress;
}
public function setSiteProductionAddress(?string $siteProductionAddress): self
{
$this->siteProductionAddress = $siteProductionAddress;
return $this;
}
public function getGouvernorat(): ?Gouvernorat
{
return $this->gouvernorat;
}
public function setGouvernorat(?Gouvernorat $gouvernorat): self
{
$this->gouvernorat = $gouvernorat;
return $this;
}
public function getDelegation(): ?Delegation
{
return $this->delegation;
}
public function setDelegation(?Delegation $delegation): self
{
$this->delegation = $delegation;
return $this;
}
public function getLocalite(): ?string
{
return $this->localite;
}
public function setLocalite(?string $localite): self
{
$this->localite = $localite;
return $this;
}
public function getCodePostal(): ?int
{
return $this->codePostal;
}
public function setCodePostal(?int $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getTel(): ?string
{
return $this->tel;
}
public function setTel(?string $tel): self
{
$this->tel = $tel;
return $this;
}
public function getFax(): ?string
{
return $this->fax;
}
public function setFax(?string $fax): self
{
$this->fax = $fax;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getNomPrenomResponsable(): ?string
{
return $this->nomPrenomResponsable;
}
public function setNomPrenomResponsable(?string $nomPrenomResponsable): self
{
$this->nomPrenomResponsable = $nomPrenomResponsable;
return $this;
}
public function getSecteurActivite(): ?string
{
return $this->secteurActivite;
}
public function setSecteurActivite(?string $secteurActivite): self
{
$this->secteurActivite = $secteurActivite;
return $this;
}
public function getBrancheActivite(): ?string
{
return $this->brancheActivite;
}
public function setBrancheActivite(?string $brancheActivite): self
{
$this->brancheActivite = $brancheActivite;
return $this;
}
public function getProduitServiceRendu(): ?string
{
return $this->produitServiceRendu;
}
public function setProduitServiceRendu(string $produitServiceRendu): self
{
$this->produitServiceRendu = $produitServiceRendu;
return $this;
}
public function getExportatrice(): ?int
{
return $this->exportatrice;
}
public function setExportatrice(?int $exportatrice): self
{
$this->exportatrice = $exportatrice;
return $this;
}
public function isIsOffshore(): ?bool
{
return $this->isOffshore;
}
public function setIsOffshore(?bool $isOffshore): self
{
$this->isOffshore = $isOffshore;
return $this;
}
public function getTauxTfp(): ?int
{
return $this->tauxTfp;
}
public function setTauxTfp(?int $tauxTfp): self
{
$this->tauxTfp = $tauxTfp;
return $this;
}
public function getRegimeTravail(): ?int
{
return $this->regimeTravail;
}
public function setRegimeTravail(?int $regimeTravail): self
{
$this->regimeTravail = $regimeTravail;
return $this;
}
public function getMontantTfpAnneePrec(): ?float
{
return $this->montantTfpAnneePrec;
}
public function setMontantTfpAnneePrec(?float $montantTfpAnneePrec): self
{
$this->montantTfpAnneePrec = $montantTfpAnneePrec;
return $this;
}
public function getNomChargeFormation(): ?string
{
return $this->nomChargeFormation;
}
public function setNomChargeFormation(?string $nomChargeFormation): self
{
$this->nomChargeFormation = $nomChargeFormation;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(?string $genre): self
{
$this->genre = $genre;
return $this;
}
public function getNiveauInstruction(): ?string
{
return $this->niveauInstruction;
}
public function setNiveauInstruction(?string $niveauInstruction): self
{
$this->niveauInstruction = $niveauInstruction;
return $this;
}
public function getFonction(): ?string
{
return $this->fonction;
}
public function setFonction(?string $fonction): self
{
$this->fonction = $fonction;
return $this;
}
public function getStructureAffectation(): ?string
{
return $this->structureAffectation;
}
public function setStructureAffectation(?string $structureAffectation): self
{
$this->structureAffectation = $structureAffectation;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getNatureDemande(): ?int
{
return $this->natureDemande;
}
public function setNatureDemande(?int $natureDemande): self
{
$this->natureDemande = $natureDemande;
return $this;
}
public function getChargeProgramme(): ?string
{
return $this->chargeProgramme;
}
public function setChargeProgramme(?string $chargeProgramme): self
{
$this->chargeProgramme = $chargeProgramme;
return $this;
}
public function getObjetDemande(): ?int
{
return $this->objetDemande;
}
public function setObjetDemande(?int $objetDemande): self
{
$this->objetDemande = $objetDemande;
return $this;
}
public function getJustifDemande(): ?string
{
return $this->justifDemande;
}
public function setJustifDemande(?string $justifDemande): self
{
$this->justifDemande = $justifDemande;
return $this;
}
public function getPopulationCible(): ?string
{
return $this->populationCible;
}
public function setPopulationCible(string $populationCible): self
{
$this->populationCible = $populationCible;
return $this;
}
public function getPresentationSecteurActivite(): ?string
{
return $this->presentationSecteurActivite;
}
public function setPresentationSecteurActivite(?string $presentationSecteurActivite): self
{
$this->presentationSecteurActivite = $presentationSecteurActivite;
return $this;
}
public function getNbrActif(): ?int
{
return $this->nbrActif;
}
public function setNbrActif(?int $nbrActif): self
{
$this->nbrActif = $nbrActif;
return $this;
}
public function getNbrEntrepriseCible(): ?int
{
return $this->nbrEntrepriseCible;
}
public function setNbrEntrepriseCible(?int $nbrEntrepriseCible): self
{
$this->nbrEntrepriseCible = $nbrEntrepriseCible;
return $this;
}
public function getNbrBeneficiaire(): ?int
{
return $this->nbrBeneficiaire;
}
public function setNbrBeneficiaire(?int $nbrBeneficiaire): self
{
$this->nbrBeneficiaire = $nbrBeneficiaire;
return $this;
}
public function getPeriodePrevisionnelle(): ?int
{
return $this->periodePrevisionnelle;
}
public function setPeriodePrevisionnelle(?int $periodePrevisionnelle): self
{
$this->periodePrevisionnelle = $periodePrevisionnelle;
return $this;
}
public function getSourceBesoins(): ?int
{
return $this->sourceBesoins;
}
public function setSourceBesoins(?int $sourceBesoins): self
{
$this->sourceBesoins = $sourceBesoins;
return $this;
}
public function getService(): ?Service
{
return $this->service;
}
public function setService(?Service $service): self
{
$this->service = $service;
return $this;
}
/**
* @return string|null
*/
public function getCodeCnss(): ?string
{
return $this->codeCnss;
}
/**
* @param string|null $codeCnss
*/
public function setCodeCnss(?string $codeCnss): void
{
$this->codeCnss = $codeCnss;
}
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
public function getEtat(): ?int
{
return $this->etat;
}
public function setEtat(?int $etat): self
{
$this->etat = $etat;
return $this;
}
/**
* @return int|null
*/
public function getEffectifHommePermanentCadre(): ?int
{
return $this->effectifHommePermanentCadre;
}
/**
* @param int|null $effectifHommePermanentCadre
*/
public function setEffectifHommePermanentCadre(?int $effectifHommePermanentCadre): void
{
$this->effectifHommePermanentCadre = $effectifHommePermanentCadre;
}
/**
* @return int|null
*/
public function getEffectifHommePermanentAgent(): ?int
{
return $this->effectifHommePermanentAgent;
}
/**
* @param int|null $effectifHommePermanentAgent
*/
public function setEffectifHommePermanentAgent(?int $effectifHommePermanentAgent): void
{
$this->effectifHommePermanentAgent = $effectifHommePermanentAgent;
}
/**
* @return int|null
*/
public function getEffectifHommePermanentAgentMaitrise(): ?int
{
return $this->effectifHommePermanentAgentMaitrise;
}
/**
* @param int|null $effectifHommePermanentAgentMaitrise
*/
public function setEffectifHommePermanentAgentMaitrise(?int $effectifHommePermanentAgentMaitrise): void
{
$this->effectifHommePermanentAgentMaitrise = $effectifHommePermanentAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifHommePermanentTotal(): ?int
{
return $this->effectifHommePermanentTotal;
}
/**
* @param int|null $effectifHommePermanentTotal
*/
public function setEffectifHommePermanentTotal(?int $effectifHommePermanentTotal): void
{
$this->effectifHommePermanentTotal = $effectifHommePermanentTotal;
}
/**
* @return int|null
*/
public function getEffectifFemmePermanentCadre(): ?int
{
return $this->effectifFemmePermanentCadre;
}
/**
* @param int|null $effectifFemmePermanentCadre
*/
public function setEffectifFemmePermanentCadre(?int $effectifFemmePermanentCadre): void
{
$this->effectifFemmePermanentCadre = $effectifFemmePermanentCadre;
}
/**
* @return int|null
*/
public function getEffectifFemmePermanentAgent(): ?int
{
return $this->effectifFemmePermanentAgent;
}
/**
* @param int|null $effectifFemmePermanentAgent
*/
public function setEffectifFemmePermanentAgent(?int $effectifFemmePermanentAgent): void
{
$this->effectifFemmePermanentAgent = $effectifFemmePermanentAgent;
}
/**
* @return int|null
*/
public function getEffectifFemmePermanentAgentMaitrise(): ?int
{
return $this->effectifFemmePermanentAgentMaitrise;
}
/**
* @param int|null $effectifFemmePermanentAgentMaitrise
*/
public function setEffectifFemmePermanentAgentMaitrise(?int $effectifFemmePermanentAgentMaitrise): void
{
$this->effectifFemmePermanentAgentMaitrise = $effectifFemmePermanentAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifFemmePermanentTotal(): ?int
{
return $this->effectifFemmePermanentTotal;
}
/**
* @param int|null $effectifFemmePermanentTotal
*/
public function setEffectifFemmePermanentTotal(?int $effectifFemmePermanentTotal): void
{
$this->effectifFemmePermanentTotal = $effectifFemmePermanentTotal;
}
/**
* @return int|null
*/
public function getEffectifHommeContractuelCadre(): ?int
{
return $this->effectifHommeContractuelCadre;
}
/**
* @param int|null $effectifHommeContractuelCadre
*/
public function setEffectifHommeContractuelCadre(?int $effectifHommeContractuelCadre): void
{
$this->effectifHommeContractuelCadre = $effectifHommeContractuelCadre;
}
/**
* @return int|null
*/
public function getEffectifHommeContractuelAgent(): ?int
{
return $this->effectifHommeContractuelAgent;
}
/**
* @param int|null $effectifHommeContractuelAgent
*/
public function setEffectifHommeContractuelAgent(?int $effectifHommeContractuelAgent): void
{
$this->effectifHommeContractuelAgent = $effectifHommeContractuelAgent;
}
/**
* @return int|null
*/
public function getEffectifHommeContractuelAgentMaitrise(): ?int
{
return $this->effectifHommeContractuelAgentMaitrise;
}
/**
* @param int|null $effectifHommeContractuelAgentMaitrise
*/
public function setEffectifHommeContractuelAgentMaitrise(?int $effectifHommeContractuelAgentMaitrise): void
{
$this->effectifHommeContractuelAgentMaitrise = $effectifHommeContractuelAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifHommeContractuelTotal(): ?int
{
return $this->effectifHommeContractuelTotal;
}
/**
* @param int|null $effectifHommeContractuelTotal
*/
public function setEffectifHommeContractuelTotal(?int $effectifHommeContractuelTotal): void
{
$this->effectifHommeContractuelTotal = $effectifHommeContractuelTotal;
}
/**
* @return int|null
*/
public function getEffectifFemmeContractuelCadre(): ?int
{
return $this->effectifFemmeContractuelCadre;
}
/**
* @param int|null $effectifFemmeContractuelCadre
*/
public function setEffectifFemmeContractuelCadre(?int $effectifFemmeContractuelCadre): void
{
$this->effectifFemmeContractuelCadre = $effectifFemmeContractuelCadre;
}
/**
* @return int|null
*/
public function getEffectifFemmeContractuelAgent(): ?int
{
return $this->effectifFemmeContractuelAgent;
}
/**
* @param int|null $effectifFemmeContractuelAgent
*/
public function setEffectifFemmeContractuelAgent(?int $effectifFemmeContractuelAgent): void
{
$this->effectifFemmeContractuelAgent = $effectifFemmeContractuelAgent;
}
/**
* @return int|null
*/
public function getEffectifFemmeContractuelAgentMaitrise(): ?int
{
return $this->effectifFemmeContractuelAgentMaitrise;
}
/**
* @param int|null $effectifFemmeContractuelAgentMaitrise
*/
public function setEffectifFemmeContractuelAgentMaitrise(?int $effectifFemmeContractuelAgentMaitrise): void
{
$this->effectifFemmeContractuelAgentMaitrise = $effectifFemmeContractuelAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifFemmeContractuelTotal(): ?int
{
return $this->effectifFemmeContractuelTotal;
}
/**
* @param int|null $effectifFemmeContractuelTotal
*/
public function setEffectifFemmeContractuelTotal(?int $effectifFemmeContractuelTotal): void
{
$this->effectifFemmeContractuelTotal = $effectifFemmeContractuelTotal;
}
/**
* @return int|null
*/
public function getEffectifHommeOccasionnelCadre(): ?int
{
return $this->effectifHommeOccasionnelCadre;
}
/**
* @param int|null $effectifHommeOccasionnelCadre
*/
public function setEffectifHommeOccasionnelCadre(?int $effectifHommeOccasionnelCadre): void
{
$this->effectifHommeOccasionnelCadre = $effectifHommeOccasionnelCadre;
}
/**
* @return int|null
*/
public function getEffectifHommeOccasionnelAgent(): ?int
{
return $this->effectifHommeOccasionnelAgent;
}
/**
* @param int|null $effectifHommeOccasionnelAgent
*/
public function setEffectifHommeOccasionnelAgent(?int $effectifHommeOccasionnelAgent): void
{
$this->effectifHommeOccasionnelAgent = $effectifHommeOccasionnelAgent;
}
/**
* @return int|null
*/
public function getEffectifHommeOccasionnelAgentMaitrise(): ?int
{
return $this->effectifHommeOccasionnelAgentMaitrise;
}
/**
* @param int|null $effectifHommeOccasionnelAgentMaitrise
*/
public function setEffectifHommeOccasionnelAgentMaitrise(?int $effectifHommeOccasionnelAgentMaitrise): void
{
$this->effectifHommeOccasionnelAgentMaitrise = $effectifHommeOccasionnelAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifHommeOccasionnelTotal(): ?int
{
return $this->effectifHommeOccasionnelTotal;
}
/**
* @param int|null $effectifHommeOccasionnelTotal
*/
public function setEffectifHommeOccasionnelTotal(?int $effectifHommeOccasionnelTotal): void
{
$this->effectifHommeOccasionnelTotal = $effectifHommeOccasionnelTotal;
}
/**
* @return int|null
*/
public function getEffectifFemmeOccasionnelCadre(): ?int
{
return $this->effectifFemmeOccasionnelCadre;
}
/**
* @param int|null $effectifFemmeOccasionnelCadre
*/
public function setEffectifFemmeOccasionnelCadre(?int $effectifFemmeOccasionnelCadre): void
{
$this->effectifFemmeOccasionnelCadre = $effectifFemmeOccasionnelCadre;
}
/**
* @return int|null
*/
public function getEffectifFemmeOccasionnelAgent(): ?int
{
return $this->effectifFemmeOccasionnelAgent;
}
/**
* @param int|null $effectifFemmeOccasionnelAgent
*/
public function setEffectifFemmeOccasionnelAgent(?int $effectifFemmeOccasionnelAgent): void
{
$this->effectifFemmeOccasionnelAgent = $effectifFemmeOccasionnelAgent;
}
/**
* @return int|null
*/
public function getEffectifFemmeOccasionnelAgentMaitrise(): ?int
{
return $this->effectifFemmeOccasionnelAgentMaitrise;
}
/**
* @param int|null $effectifFemmeOccasionnelAgentMaitrise
*/
public function setEffectifFemmeOccasionnelAgentMaitrise(?int $effectifFemmeOccasionnelAgentMaitrise): void
{
$this->effectifFemmeOccasionnelAgentMaitrise = $effectifFemmeOccasionnelAgentMaitrise;
}
/**
* @return int|null
*/
public function getEffectifFemmeOccasionnelTotal(): ?int
{
return $this->effectifFemmeOccasionnelTotal;
}
/**
* @param int|null $effectifFemmeOccasionnelTotal
*/
public function setEffectifFemmeOccasionnelTotal(?int $effectifFemmeOccasionnelTotal): void
{
$this->effectifFemmeOccasionnelTotal = $effectifFemmeOccasionnelTotal;
}
/**
* @return int|null
*/
public function getTotalCadre(): ?int
{
return $this->totalCadre;
}
/**
* @param int|null $totalCadre
*/
public function setTotalCadre(?int $totalCadre): void
{
$this->totalCadre = $totalCadre;
}
/**
* @return int|null
*/
public function getTotalAgent(): ?int
{
return $this->totalAgent;
}
/**
* @param int|null $totalAgent
*/
public function setTotalAgent(?int $totalAgent): void
{
$this->totalAgent = $totalAgent;
}
/**
* @return int|null
*/
public function getTotalAgentMaitrise(): ?int
{
return $this->totalAgentMaitrise;
}
/**
* @param int|null $totalAgentMaitrise
*/
public function setTotalAgentMaitrise(?int $totalAgentMaitrise): void
{
$this->totalAgentMaitrise = $totalAgentMaitrise;
}
/**
* @return int|null
*/
public function getTotal(): ?int
{
return $this->total;
}
/**
* @param int|null $total
*/
public function setTotal(?int $total): void
{
$this->total = $total;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->createdBy;
}
public function setCreatedBy(?int $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updatedBy;
}
public function setUpdatedBy(?int $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function isIsDeleted(): ?bool
{
return $this->isDeleted;
}
public function setIsDeleted(?bool $isDeleted): self
{
$this->isDeleted = $isDeleted;
return $this;
}
public function isEnabled(): ?bool
{
return $this->enabled;
}
public function setEnabled(?bool $enabled): self
{
$this->enabled = $enabled;
return $this;
}
public function isIsVerified(): ?bool
{
return $this->isVerified;
}
public function setIsVerified(?bool $isVerified): self
{
$this->isVerified = $isVerified;
return $this;
}
public function getVerifiedBy(): ?int
{
return $this->verifiedBy;
}
public function setVerifiedBy(?int $verifiedBy): self
{
$this->verifiedBy = $verifiedBy;
return $this;
}
public function getVerifiedAt(): ?\DateTimeInterface
{
return $this->verifiedAt;
}
public function setVerifiedAt(?\DateTimeInterface $verifiedAt): self
{
$this->verifiedAt = $verifiedAt;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getDocuments(): ?string
{
return $this->documents;
}
public function setDocuments(?string $documents): self
{
$this->documents = $documents;
return $this;
}
public function getValidBy(): ?int
{
return $this->validBy;
}
public function setValidBy(?int $validBy): self
{
$this->validBy = $validBy;
return $this;
}
public function getValidAt(): ?\DateTimeInterface
{
return $this->validAt;
}
public function setValidAt(?\DateTimeInterface $validAt): self
{
$this->validAt = $validAt;
return $this;
}
public function getRefusedBy(): ?int
{
return $this->refusedBy;
}
public function setRefusedBy(?int $refusedBy): self
{
$this->refusedBy = $refusedBy;
return $this;
}
public function getRefusedAt(): ?\DateTimeInterface
{
return $this->refusedAt;
}
public function setRefusedAt(?\DateTimeInterface $refusedAt): self
{
$this->refusedAt = $refusedAt;
return $this;
}
public function isAssigned(): ?bool
{
return $this->assigned;
}
public function setAssigned(?bool $assigned): self
{
$this->assigned = $assigned;
return $this;
}
public function isIsValid(): ?bool
{
return $this->isValid;
}
public function setIsValid(?bool $isValid): self
{
$this->isValid = $isValid;
return $this;
}
/**
* @return Collection<int, DemandeAffectation>
*/
public function getDemandeAffectation(): Collection
{
return $this->demandeAffectation;
}
public function addDemandeAffectation(DemandeAffectation $demandeAffectation): self
{
if (!$this->demandeAffectation->contains($demandeAffectation)) {
$this->demandeAffectation->add($demandeAffectation);
$demandeAffectation->setDemandeService($this);
}
return $this;
}
public function removeDemandeAffectation(DemandeAffectation $demandeAffectation): self
{
if ($this->demandeAffectation->removeElement($demandeAffectation)) {
// set the owning side to null (unless already changed)
if ($demandeAffectation->getDemandeService() === $this) {
$demandeAffectation->setDemandeService(null);
}
}
return $this;
}
/**
* @return string|null
*/
public function __toString()
{
if (null === $this->getDemandeGroupe()) {
return (string)$this->getService()->getAxe();
} else {
if (null !== $this->getNomGroupe()) {
return $this->getNomGroupe();
}
return '';
}
}
/**
* @return Collection<int, DocDemandeClient>
*/
public function getDocDemandeClient(): Collection
{
return $this->docDemandeClient;
}
public function addDocDemandeClient(DocDemandeClient $docDemandeClient): self
{
if (!$this->docDemandeClient->contains($docDemandeClient)) {
$this->docDemandeClient->add($docDemandeClient);
$docDemandeClient->setDemandeService($this);
}
return $this;
}
public function removeDocDemandeClient(DocDemandeClient $docDemandeClient): self
{
if ($this->docDemandeClient->removeElement($docDemandeClient)) {
// set the owning side to null (unless already changed)
if ($docDemandeClient->getDemandeService() === $this) {
$docDemandeClient->setDemandeService(null);
}
}
return $this;
}
/**
* @return Collection<int, DemandeServiceCandidat>
*/
public function getDemandeServiceCandidats(): Collection
{
return $this->demandeServiceCandidats;
}
public function addDemandeServiceCandidat(DemandeServiceCandidat $demandeServiceCandidat): self
{
if (!$this->demandeServiceCandidats->contains($demandeServiceCandidat)) {
$this->demandeServiceCandidats->add($demandeServiceCandidat);
$demandeServiceCandidat->setDemandeService($this);
}
return $this;
}
public function removeDemandeServiceCandidat(DemandeServiceCandidat $demandeServiceCandidat): self
{
if ($this->demandeServiceCandidats->removeElement($demandeServiceCandidat)) {
// set the owning side to null (unless already changed)
if ($demandeServiceCandidat->getDemandeService() === $this) {
$demandeServiceCandidat->setDemandeService(null);
}
}
return $this;
}
public function isAcceptDocuments(): ?bool
{
return $this->acceptDocuments;
}
public function setAcceptDocuments(?bool $acceptDocuments): self
{
$this->acceptDocuments = $acceptDocuments;
return $this;
}
public function getMotifRefus(): ?string
{
return $this->motifRefus;
}
public function setMotifRefus(?string $motifRefus): self
{
$this->motifRefus = $motifRefus;
return $this;
}
public function getGroupe(): ?self
{
return $this->groupe;
}
public function setGroupe(?self $groupe): self
{
$this->groupe = $groupe;
return $this;
}
/**
* @return Collection<int, self>
*/
public function getDemandeGroupe(): Collection
{
return $this->demandeGroupe;
}
public function addDemandeGroupe(self $demandeGroupe): self
{
if (!$this->demandeGroupe->contains($demandeGroupe)) {
$this->demandeGroupe->add($demandeGroupe);
$demandeGroupe->setGroupe($this);
}
return $this;
}
public function removeDemandeGroupe(self $demandeGroupe): self
{
if ($this->demandeGroupe->removeElement($demandeGroupe)) {
// set the owning side to null (unless already changed)
if ($demandeGroupe->getGroupe() === $this) {
$demandeGroupe->setGroupe(null);
}
}
return $this;
}
public function getProcessType(): ?int
{
return $this->processType;
}
public function setProcessType(?int $processType = Globals::INTERVENTION_PROCESS_TYPE): self
{
$this->processType = $processType;
return $this;
}
public function getNomGroupe(): ?string
{
return $this->nomGroupe;
}
public function setNomGroupe(?string $nomGroupe): self
{
$this->nomGroupe = $nomGroupe;
return $this;
}
public function getDocDemandeValidated(): ?string
{
return $this->docDemandeValidated;
}
public function setDocDemandeValidated(?string $docDemandeValidated): self
{
$this->docDemandeValidated = $docDemandeValidated;
return $this;
}
public function isTachAnalyseCloturer(): bool
{
$isTachAnalyseCloturer = false;
foreach ( $this->getDemandeAffectation() as $demandeAffectation){
if ( $demandeAffectation->getTache()
&& str_contains( $demandeAffectation->getTache()->getLabel(), Globals::TACHE_ANALYSE)
&& GLobals::TASK_ETAT_CLOTURE === $demandeAffectation->getStatut()
){
$isTachAnalyseCloturer = true;
break;
}
}
return $isTachAnalyseCloturer;
}
public function isTachAnalyseValidated(): bool
{
$isTachAnalyseValidated = false;
foreach( $this->getDemandeAffectation() as $demandeAffectation ){
if( $demandeAffectation->getTache() &&
(
str_contains( $demandeAffectation->getTache()->getLabel(), Globals::TACHE_ANALYSE ) ||
str_contains( $demandeAffectation->getTache()->getLabel(), Globals::TACHE_PREPARATION )
) &&
GLobals::TASK_ETAT_VALIDATED === $demandeAffectation->getStatut()
){
$isTachAnalyseValidated = true;
break;
}
}
return $isTachAnalyseValidated;
}
public function getTachExecutionDateDebut(): ?\DateTimeInterface
{
$dateDebut = null;
foreach ( $this->getDemandeAffectation() as $demandeAffectation){
if ( $demandeAffectation->getTache()
&& str_contains( $demandeAffectation->getTache()->getLabel(), Globals::TACHE_EXECUTION)
){
$dateDebut = $demandeAffectation->getDateDebut();
break;
}
}
return $dateDebut;
}
public function getTachExecutionDateFin(): ?\DateTimeInterface
{
$dateFin = null;
foreach ( $this->getDemandeAffectation() as $demandeAffectation){
if ( $demandeAffectation->getTache()
&& str_contains( $demandeAffectation->getTache()->getLabel(), Globals::TACHE_EXECUTION)
){
$dateFin = $demandeAffectation->getDateFin();
break;
}
}
return $dateFin;
}
/**
* @return Collection<int, DemandeNote>
*/
public function getDemandeNotes(): Collection
{
return $this->demandeNotes;
}
public function addDemandeNote(DemandeNote $demandeNote): self
{
if (!$this->demandeNotes->contains($demandeNote)) {
$this->demandeNotes->add($demandeNote);
$demandeNote->setDemande($this);
}
return $this;
}
public function removeDemandeNote(DemandeNote $demandeNote): self
{
if ($this->demandeNotes->removeElement($demandeNote)) {
// set the owning side to null (unless already changed)
if ($demandeNote->getDemande() === $this) {
$demandeNote->setDemande(null);
}
}
return $this;
}
public function getPrestation(): ?Prestation
{
return $this->prestation;
}
public function setPrestation(?Prestation $prestation): self
{
$this->prestation = $prestation;
return $this;
}
public function getGroupeDemande(): ?GroupeDemande
{
return $this->groupeDemande;
}
public function setGroupeDemande(?GroupeDemande $groupeDemande): self
{
$this->groupeDemande = $groupeDemande;
return $this;
}
public function getModule(): ?Module
{
return $this->module;
}
public function setModule(?Module $module): self
{
$this->module = $module;
return $this;
}
public function getRubrique(): ?Rubrique
{
return $this->rubrique;
}
public function setRubrique(?Rubrique $rubrique): self
{
$this->rubrique = $rubrique;
return $this;
}
public function getDateDebutModule(): ?\DateTimeInterface
{
return $this->dateDebutModule;
}
public function setDateDebutModule(?\DateTimeInterface $dateDebutModule): self
{
$this->dateDebutModule = $dateDebutModule;
return $this;
}
public function getDateFinModule(): ?\DateTimeInterface
{
return $this->dateFinModule;
}
public function setDateFinModule(?\DateTimeInterface $dateFinModule): self
{
$this->dateFinModule = $dateFinModule;
return $this;
}
public function getLocationModule(): ?string
{
return $this->locationModule;
}
public function setLocationModule(?string $locationModule): self
{
$this->locationModule = $locationModule;
return $this;
}
public function getUniqueListOfFormateur(): ?string
{
$result = [];
foreach( $this->getDemandeAffectation() as $demandeAffectation ){
foreach ( $demandeAffectation->getConseiller() as $conseiller ) {
$result[] = $conseiller->__toString();
}
}
return implode(",", array_unique($result));
}
public function getUserFicheSatisfaction(): ?UserFicheSatisfaction
{
return $this->userFicheSatisfaction;
}
public function setUserFicheSatisfaction(UserFicheSatisfaction $userFicheSatisfaction): static
{
// set the owning side of the relation if necessary
if ($userFicheSatisfaction->getDemandeService() !== $this) {
$userFicheSatisfaction->setDemandeService($this);
}
$this->userFicheSatisfaction = $userFicheSatisfaction;
return $this;
}
public function getInstanceRepresentative(): ?string
{
return $this->instanceRepresentative;
}
public function setInstanceRepresentative(?string $instanceRepresentative): self
{
$this->instanceRepresentative = $instanceRepresentative;
return $this;
}
public function getBrancheActivitePlan(): ?string
{
return $this->brancheActivitePlan;
}
public function setBrancheActivitePlan(?string $brancheActivitePlan): self
{
$this->brancheActivitePlan = $brancheActivitePlan;
return $this;
}
public function getYear(): ?int
{
return $this->year;
}
public function setYear(?int $year): self
{
$this->year = $year;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getMode(): ?int
{
return $this->mode;
}
public function setMode(?int $mode): self
{
$this->mode = $mode;
return $this;
}
public function getNbrEntreprise(): ?int
{
return $this->nbrEntreprise;
}
public function setNbrEntreprise(?int $nbrEntreprise): self
{
$this->nbrEntreprise = $nbrEntreprise;
return $this;
}
public function getEffectif(): ?int
{
return $this->effectif;
}
public function setEffectif(?int $effectif): self
{
$this->effectif = $effectif;
return $this;
}
public function getDuree(): ?int
{
return $this->duree;
}
public function setDuree(?int $duree): self
{
$this->duree = $duree;
return $this;
}
public function getNbrGroupe(): ?int
{
return $this->nbrGroupe;
}
public function setNbrGroupe(?int $nbrGroupe): self
{
$this->nbrGroupe = $nbrGroupe;
return $this;
}
public function getPopulationCiblePlan(): ?string
{
return $this->populationCiblePlan;
}
public function setPopulationCiblePlan(?string $populationCiblePlan): self
{
$this->populationCiblePlan = $populationCiblePlan;
return $this;
}
public function getModulePlan(): ?string
{
return $this->modulePlan;
}
public function setModulePlan(?string $modulePlan): self
{
$this->modulePlan = $modulePlan;
return $this;
}
public function getGouvernouratModule(): ?Gouvernorat
{
return $this->gouvernouratModule;
}
public function setGouvernouratModule(?Gouvernorat $gouvernouratModule): self
{
$this->gouvernouratModule = $gouvernouratModule;
return $this;
}
/**
* Get the value of coutFormation
*/
public function getCoutFormation(): ?float
{
return $this->coutFormation;
}
/**
* Set the value of coutFormation
*
* @return self
*/
public function setCoutFormation( ?float $coutFormation) : self
{
$this->coutFormation = $coutFormation;
return $this;
}
/**
* @return Collection<int, Feedback>
*/
public function getFeedback(): Collection
{
return $this->feedback;
}
public function addFeedback(Feedback $feedback): self
{
if (!$this->feedback->contains($feedback)) {
$this->feedback->add($feedback);
$feedback->setDemande($this);
}
return $this;
}
public function removeFeedback(Feedback $feedback): self
{
if ($this->feedback->removeElement($feedback)) {
// set the owning side to null (unless already changed)
if ($feedback->getDemande() === $this) {
$feedback->setDemande(null);
}
}
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCnsscnrps(): ?string
{
return $this->cnsscnrps;
}
public function setCnsscnrps(?string $cnsscnrps): self
{
$this->cnsscnrps = $cnsscnrps;
return $this;
}
}