<?phpnamespace App\Entity;use App\Repository\MessageRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=MessageRepository::class) */class Message{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=50) */ private $nom; /** * @ORM\Column(type="string", length=50) */ private $prenom; /** * @ORM\Column(type="string", length=50) */ private $telephone; /** * @ORM\Column(type="string", length=100) */ private $email; /** * @ORM\Column(type="string", length=100) */ private $adresse; /** * @ORM\Column(type="text") */ private $message; /** * @ORM\Column(type="datetime") */ private $date; 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 getTelephone(): ?string { return $this->telephone; } public function setTelephone(string $telephone): self { $this->telephone = $telephone; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getAdresse(): ?string { return $this->adresse; } public function setAdresse(string $adresse): self { $this->adresse = $adresse; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; }}