src/Entity/Demande.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassDemandeRepository::class)]
  7. class Demande
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $nom null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $prenom null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $telephone null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $email null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $sujet null;
  23.     #[ORM\Column(typeTypes::TEXT)]
  24.     private ?string $message null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getNom(): ?string
  30.     {
  31.         return $this->nom;
  32.     }
  33.     public function setNom(string $nom): self
  34.     {
  35.         $this->nom $nom;
  36.         return $this;
  37.     }
  38.     public function getPrenom(): ?string
  39.     {
  40.         return $this->prenom;
  41.     }
  42.     public function setPrenom(?string $prenom): self
  43.     {
  44.         $this->prenom $prenom;
  45.         return $this;
  46.     }
  47.     public function getTelephone(): ?string
  48.     {
  49.         return $this->telephone;
  50.     }
  51.     public function setTelephone(string $telephone): self
  52.     {
  53.         $this->telephone $telephone;
  54.         return $this;
  55.     }
  56.     public function getEmail(): ?string
  57.     {
  58.         return $this->email;
  59.     }
  60.     public function setEmail(string $email): self
  61.     {
  62.         $this->email $email;
  63.         return $this;
  64.     }
  65.     public function getSujet(): ?string
  66.     {
  67.         return $this->sujet;
  68.     }
  69.     public function setSujet(?string $sujet): self
  70.     {
  71.         $this->sujet $sujet;
  72.         return $this;
  73.     }
  74.     public function getMessage(): ?string
  75.     {
  76.         return $this->message;
  77.     }
  78.     public function setMessage(string $message): self
  79.     {
  80.         $this->message $message;
  81.         return $this;
  82.     }
  83. }