<?phpnamespace App\Entity;use App\Repository\RapportEvaluationRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RapportEvaluationRepository::class)]class RapportEvaluation{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $raisonSocial = null; #[ORM\Column(length: 255)] private ?string $secteur_activite = null; #[ORM\Column(length: 255)] private ?string $sous_secteur_activite = null; #[ORM\Column(length: 255)] private ?string $effectif = null; #[ORM\Column(length: 255)] private ?string $site_production = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $date_demande_diagnostic = null; #[ORM\Column(length: 255)] private ?string $intervenats = null; #[ORM\Column] private ?int $nbr_jours_inter_demande = null; #[ORM\Column] private ?int $nbr_jours_inter_agree = null; #[ORM\Column(length: 255 , nullable: true)] private ?string $rapport = null; #[ORM\OneToMany(mappedBy: 'rapportEvaluation', cascade: ['persist', 'remove'], targetEntity: ReponseGrilleEvaluation::class)] private Collection $reponseGrilleEvaluations; #[ORM\ManyToOne(inversedBy: 'rapportEvaluations')] private ?AgentInterne $conseiller = null; #[ORM\Column(nullable: true)] private ?bool $isValid = null; #[ORM\Column(length: 2555, nullable: true)] private ?string $decision = null; #[ORM\Column(length: 255, nullable: true)] private ?string $signaler1 = null; #[ORM\Column(length: 255, nullable: true)] private ?string $signaler2 = null; #[ORM\Column(length: 255, nullable: true)] private ?string $besoins = null; #[ORM\ManyToOne(inversedBy: 'rapportEvaluations')] private ?Entreprise $entreprise = null; public function __construct() { $this->reponseGrilleEvaluations = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getRaisonSocial(): ?string { return $this->raisonSocial; } public function setRaisonSocial(string $raisonSocial): self { $this->raisonSocial = $raisonSocial; return $this; } public function getSecteurActivite(): ?string { return $this->secteur_activite; } public function setSecteurActivite(string $secteur_activite): self { $this->secteur_activite = $secteur_activite; return $this; } public function getSousSecteurActivite(): ?string { return $this->sous_secteur_activite; } public function setSousSecteurActivite(string $sous_secteur_activite): self { $this->sous_secteur_activite = $sous_secteur_activite; return $this; } public function getEffectif(): ?string { return $this->effectif; } public function setEffectif(string $effectif): self { $this->effectif = $effectif; return $this; } public function getSiteProduction(): ?string { return $this->site_production; } public function setSiteProduction(string $site_production): self { $this->site_production = $site_production; return $this; } public function getDateDemandeDiagnostic(): ?\DateTimeInterface { return $this->date_demande_diagnostic; } public function setDateDemandeDiagnostic(\DateTimeInterface $date_demande_diagnostic): self { $this->date_demande_diagnostic = $date_demande_diagnostic; return $this; } public function getIntervenats(): ?string { return $this->intervenats; } public function setIntervenats(string $intervenats): self { $this->intervenats = $intervenats; return $this; } public function getNbrJoursInterDemande(): ?int { return $this->nbr_jours_inter_demande; } public function setNbrJoursInterDemande(int $nbr_jours_inter_demande): self { $this->nbr_jours_inter_demande = $nbr_jours_inter_demande; return $this; } public function getNbrJoursInterAgree(): ?int { return $this->nbr_jours_inter_agree; } public function setNbrJoursInterAgree(int $nbr_jours_inter_agree): self { $this->nbr_jours_inter_agree = $nbr_jours_inter_agree; return $this; } public function getRapport(): ?string { return $this->rapport; } public function setRapport(string $rapport): self { $this->rapport = $rapport; return $this; } /** * @return Collection<int, ReponseGrilleEvaluation> */ public function getReponseGrilleEvaluations(): Collection { return $this->reponseGrilleEvaluations; } public function addReponseGrilleEvaluation(ReponseGrilleEvaluation $reponseGrilleEvaluation): self { if (!$this->reponseGrilleEvaluations->contains($reponseGrilleEvaluation)) { $this->reponseGrilleEvaluations->add($reponseGrilleEvaluation); $reponseGrilleEvaluation->setRapportEvaluation($this); } return $this; } public function removeReponseGrilleEvaluation(ReponseGrilleEvaluation $reponseGrilleEvaluation): self { if ($this->reponseGrilleEvaluations->removeElement($reponseGrilleEvaluation)) { // set the owning side to null (unless already changed) if ($reponseGrilleEvaluation->getRapportEvaluation() === $this) { $reponseGrilleEvaluation->setRapportEvaluation(null); } } return $this; } public function __toString(): string { return $this->raisonSocial; } public function getConseiller(): ?AgentInterne { return $this->conseiller; } public function setConseiller(?AgentInterne $conseiller): self { $this->conseiller = $conseiller; return $this; } public function isIsValid(): ?bool { return $this->isValid; } public function setIsValid(?bool $isValid): self { $this->isValid = $isValid; return $this; } public function getDecision(): ?string { return $this->decision; } public function setDecision(?string $decision): self { $this->decision = $decision; return $this; } public function getSignaler1(): ?string { return $this->signaler1; } public function setSignaler1(?string $signaler1): self { $this->signaler1 = $signaler1; return $this; } public function getSignaler2(): ?string { return $this->signaler2; } public function setSignaler2(?string $signaler2): self { $this->signaler2 = $signaler2; return $this; } public function getBesoins(): ?string { return $this->besoins; } public function setBesoins(?string $besoins): self { $this->besoins = $besoins; return $this; } public function getEntreprise(): ?Entreprise { return $this->entreprise; } public function setEntreprise(?Entreprise $entreprise): self { $this->entreprise = $entreprise; return $this; }}