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)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $email;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $phone;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $subject;
  33.     /**
  34.      * @ORM\Column(type="string", length=255)
  35.      */
  36.     private $message;
  37.     /**
  38.      * @ORM\Column(type="datetime_immutable")
  39.      * @Gedmo\Timestampable(on="create")
  40.      */
  41.     private $created_at;
  42.     /**
  43.      * @ORM\Column(type="datetime_immutable")
  44.      * @Gedmo\Timestampable(on="update")
  45.      */
  46.     private $updated_at;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): self
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getEmail(): ?string
  61.     {
  62.         return $this->email;
  63.     }
  64.     public function setEmail(string $email): self
  65.     {
  66.         $this->email $email;
  67.         return $this;
  68.     }
  69.     public function getPhone(): ?string
  70.     {
  71.         return $this->phone;
  72.     }
  73.     public function setPhone(string $phone): self
  74.     {
  75.         $this->phone $phone;
  76.         return $this;
  77.     }
  78.     public function getSubject(): ?string
  79.     {
  80.         return $this->subject;
  81.     }
  82.     public function setSubject(string $subject): self
  83.     {
  84.         $this->subject $subject;
  85.         return $this;
  86.     }
  87.     public function getMessage(): ?string
  88.     {
  89.         return $this->message;
  90.     }
  91.     public function setMessage(string $message): self
  92.     {
  93.         $this->message $message;
  94.         return $this;
  95.     }
  96.     public function getCreatedAt(): ?\DateTimeImmutable
  97.     {
  98.         return $this->created_at;
  99.     }
  100.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  101.     {
  102.         $this->created_at $created_at;
  103.         return $this;
  104.     }
  105.     public function getUpdatedAt(): ?\DateTimeImmutable
  106.     {
  107.         return $this->updated_at;
  108.     }
  109.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  110.     {
  111.         $this->updated_at $updated_at;
  112.         return $this;
  113.     }
  114. }