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)
  17.      */
  18.     private $subject;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $firstname;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $lastname;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $email;
  31.     /**
  32.      * @ORM\Column(type="string", nullable=true, length=255)
  33.      */
  34.     private $phone;
  35.     /**
  36.      * @ORM\Column(type="text", nullable=true)
  37.      */
  38.     private $message;
  39.     /**
  40.      * @ORM\Column(type="string", length=3, nullable=true)
  41.      */
  42.     private $productInfo;
  43.     /**
  44.      * @ORM\Column(type="string", length=3, nullable=true)
  45.      */
  46.     private $feedback;
  47.     /**
  48.      * @ORM\Column(type="string", length=3, nullable=true)
  49.      */
  50.     private $promotion;
  51.     /**
  52.      * @ORM\Column(type="datetime", nullable=true)
  53.      */
  54.     private $createdAt;
  55.     
  56.     public function __construct()
  57.     {
  58.         $this->createdAt = new \DateTime();
  59.     }    
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getSubject(): ?string
  65.     {
  66.         return $this->subject;
  67.     }
  68.     public function setSubject(string $subject): self
  69.     {
  70.         $this->subject $subject;
  71.         return $this;
  72.     }
  73.     public function getFirstname(): ?string
  74.     {
  75.         return $this->firstname;
  76.     }
  77.     public function setFirstname(string $firstname): self
  78.     {
  79.         $this->firstname $firstname;
  80.         return $this;
  81.     }
  82.     public function getLastname(): ?string
  83.     {
  84.         return $this->lastname;
  85.     }
  86.     public function setLastname(string $lastname): self
  87.     {
  88.         $this->lastname $lastname;
  89.         return $this;
  90.     }
  91.     public function getEmail(): ?string
  92.     {
  93.         return $this->email;
  94.     }
  95.     public function setEmail(string $email): self
  96.     {
  97.         $this->email $email;
  98.         return $this;
  99.     }
  100.     public function getPhone(): ?string
  101.     {
  102.         return $this->phone;
  103.     }
  104.     public function setPhone(string $phone): self
  105.     {
  106.         $this->phone $phone;
  107.         return $this;
  108.     }
  109.     public function getMessage(): ?string
  110.     {
  111.         return $this->message;
  112.     }
  113.     public function setMessage(?string $message): self
  114.     {
  115.         $this->message $message;
  116.         return $this;
  117.     }
  118.     public function getProductInfo(): ?string
  119.     {
  120.         return $this->productInfo;
  121.     }
  122.     public function setProductInfo(?string $productInfo): self
  123.     {
  124.         $this->productInfo $productInfo;
  125.         return $this;
  126.     }
  127.     public function getFeedback(): ?string
  128.     {
  129.         return $this->feedback;
  130.     }
  131.     public function setFeedback(?string $feedback): self
  132.     {
  133.         $this->feedback $feedback;
  134.         return $this;
  135.     }
  136.     public function getPromotion(): ?string
  137.     {
  138.         return $this->promotion;
  139.     }
  140.     public function setPromotion(?string $promotion): self
  141.     {
  142.         $this->promotion $promotion;
  143.         return $this;
  144.     }
  145.     public function getCreatedAt(): ?\DateTimeInterface
  146.     {
  147.         return $this->createdAt;
  148.     }
  149.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  150.     {
  151.         $this->createdAt $createdAt;
  152.         return $this;
  153.     }
  154.        
  155. }