src/Entity/Contact.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\ContactRepository")
  6.  */
  7. class Contact
  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, nullable=true)
  17.      */
  18.     private $firstname;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $lastname;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $email;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $phoneNumber;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $message;
  35.     /**
  36.      * @ORM\Column(type="string", length=255)
  37.      */
  38.     private $request;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getFirstname(): ?string
  44.     {
  45.         return $this->firstname;
  46.     }
  47.     public function setFirstname(?string $firstname): self
  48.     {
  49.         $this->firstname $firstname;
  50.         return $this;
  51.     }
  52.     public function getLastname(): ?string
  53.     {
  54.         return $this->lastname;
  55.     }
  56.     public function setLastname(string $lastname): self
  57.     {
  58.         $this->lastname $lastname;
  59.         return $this;
  60.     }
  61.     public function getEmail(): ?string
  62.     {
  63.         return $this->email;
  64.     }
  65.     public function setEmail(string $email): self
  66.     {
  67.         $this->email $email;
  68.         return $this;
  69.     }
  70.     public function getPhoneNumber(): ?string
  71.     {
  72.         return $this->phoneNumber;
  73.     }
  74.     public function setPhoneNumber(?string $phoneNumber): self
  75.     {
  76.         $this->phoneNumber $phoneNumber;
  77.         return $this;
  78.     }
  79.     public function getMessage(): ?string
  80.     {
  81.         return $this->message;
  82.     }
  83.     public function setMessage(?string $message): self
  84.     {
  85.         $this->message $message;
  86.         return $this;
  87.     }
  88.     public function getRequest(): ?string
  89.     {
  90.         return $this->request;
  91.     }
  92.     public function setRequest(string $request): self
  93.     {
  94.         $this->request $request;
  95.         return $this;
  96.     }
  97. }