src/Entity/Contact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ContactRepository::class)
  8.  */
  9. class Contact
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $email;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $phone;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $service;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $message;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $lastname;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $firstname;
  41.     /**
  42.      * @Gedmo\Timestampable(on="create")
  43.      * @ORM\Column(type="datetime")
  44.      */
  45.     private $createdAt;
  46.     /**
  47.      * @Gedmo\Timestampable(on="update")
  48.      * @ORM\Column(type="datetime")
  49.      */
  50.     private $updatedAt;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getEmail(): ?string
  56.     {
  57.         return $this->email;
  58.     }
  59.     public function setEmail(?string $email): self
  60.     {
  61.         $this->email $email;
  62.         return $this;
  63.     }
  64.     public function getPhone(): ?string
  65.     {
  66.         return $this->phone;
  67.     }
  68.     public function setPhone(?string $phone): self
  69.     {
  70.         $this->phone $phone;
  71.         return $this;
  72.     }
  73.     public function getService(): ?string
  74.     {
  75.         return $this->service;
  76.     }
  77.     public function setService(?string $service): self
  78.     {
  79.         $this->service $service;
  80.         return $this;
  81.     }
  82.     public function getMessage(): ?string
  83.     {
  84.         return $this->message;
  85.     }
  86.     public function setMessage(?string $message): self
  87.     {
  88.         $this->message $message;
  89.         return $this;
  90.     }
  91.     public function getLastname(): ?string
  92.     {
  93.         return $this->lastname;
  94.     }
  95.     public function setLastname(?string $lastname): self
  96.     {
  97.         $this->lastname $lastname;
  98.         return $this;
  99.     }
  100.     public function getFirstname(): ?string
  101.     {
  102.         return $this->firstname;
  103.     }
  104.     public function setFirstname(?string $firstname): self
  105.     {
  106.         $this->firstname $firstname;
  107.         return $this;
  108.     }
  109.     public function getCreatedAt(): ?\DateTimeImmutable
  110.     {
  111.         return $this->createdAt;
  112.     }
  113.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  114.     {
  115.         $this->createdAt $createdAt;
  116.         return $this;
  117.     }
  118.     public function getUpdatedAt(): ?\DateTimeImmutable
  119.     {
  120.         return $this->updatedAt;
  121.     }
  122.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  123.     {
  124.         $this->updatedAt $updatedAt;
  125.         return $this;
  126.     }
  127. }