src/Entity/Contact.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. class Contact
  4. {
  5.     private ?string $name null;
  6.     private ?string $email null;
  7.     private ?string $subject null;
  8.     private ?string $message null;
  9.     public function getName(): ?string
  10.     {
  11.         return $this->name;
  12.     }
  13.     public function setName(string $name): self
  14.     {
  15.         $this->name $name;
  16.         return $this;
  17.     }
  18.     public function getEmail(): ?string
  19.     {
  20.         return $this->email;
  21.     }
  22.     public function setEmail(string $email): self
  23.     {
  24.         $this->email $email;
  25.         return $this;
  26.     }
  27.     public function getSubject(): ?string
  28.     {
  29.         return $this->subject;
  30.     }
  31.     public function setSubject(string $subject): self
  32.     {
  33.         $this->subject $subject;
  34.         return $this;
  35.     }
  36.     public function getMessage(): ?string
  37.     {
  38.         return $this->message;
  39.     }
  40.     public function setMessage(string $message): self
  41.     {
  42.         $this->message $message;
  43.         return $this;
  44.     }
  45. }