id; } public function getNomUtilisateur(): ?string { return $this->nomUtilisateur; } public function setNomUtilisateur(string $nomUtilisateur): static { $this->nomUtilisateur = $nomUtilisateur; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->dateCreation; } public function setDateCreation(\DateTimeInterface $dateCreation): static { $this->dateCreation = $dateCreation; return $this; } public function getNote(): ?int { return $this->note; } public function setNote(int $note): static { $this->note = $note; return $this; } public function getContenu(): ?string { return $this->contenu; } public function setContenu(string $contenu): static { $this->contenu = $contenu; return $this; } public function getEtablissement(): ?Etablissement { return $this->etablissement; } public function setEtablissement(?Etablissement $etablissement): static { $this->etablissement = $etablissement; return $this; } #[ORM\PrePersist] public function setDateCreationAutomatically(): void { if ($this->dateCreation === null) { $this->dateCreation = new \DateTime(); } } }