src/Entity/ContactMessage.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ContactMessageRepository")
  6.  */
  7. class ContactMessage
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $firstname;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $mail;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $subject;
  31.     /**
  32.      * @ORM\Column(type="text")
  33.      */
  34.     private $message;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getName(): ?string
  40.     {
  41.         return $this->name;
  42.     }
  43.     public function setName(string $name): self
  44.     {
  45.         $this->name $name;
  46.         return $this;
  47.     }
  48.     public function getFirstname(): ?string
  49.     {
  50.         return $this->firstname;
  51.     }
  52.     public function setFirstname(string $firstname): self
  53.     {
  54.         $this->firstname $firstname;
  55.         return $this;
  56.     }
  57.     public function getMail(): ?string
  58.     {
  59.         return $this->mail;
  60.     }
  61.     public function setMail(string $mail): self
  62.     {
  63.         $this->mail $mail;
  64.         return $this;
  65.     }
  66.     public function getSubject(): ?string
  67.     {
  68.         return $this->subject;
  69.     }
  70.     public function setSubject(string $subject): self
  71.     {
  72.         $this->subject $subject;
  73.         return $this;
  74.     }
  75.     public function getMessage(): ?string
  76.     {
  77.         return $this->message;
  78.     }
  79.     public function setMessage(string $message): self
  80.     {
  81.         $this->message $message;
  82.         return $this;
  83.     }
  84. }