src/Entity/CMS/ContactForm.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\CMS;
  3. use App\Entity\EntityTrait\EntityIdentityTrait;
  4. use App\Entity\EntityTrait\EntityTimestampableTrait;
  5. use DateTimeImmutable;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. /**
  9.  * @ORM\Entity
  10.  */
  11. class ContactForm
  12. {
  13.     use EntityIdentityTrait;
  14.     use EntityTimestampableTrait;
  15.     /**
  16.      * @ORM\Column(type="string")
  17.      */
  18.     private string $contactName;
  19.     /**
  20.      * @ORM\Column(type="string")
  21.      */
  22.     private string $contactEmail;
  23.     /**
  24.      * @ORM\Column(type="string", nullable=true)
  25.      */
  26.     private ?string $mailObject null;
  27.     /**
  28.      * @ORM\Column(type="text")
  29.      */
  30.     private string $message;
  31.     /**
  32.      * @ORM\Column(type="string")
  33.      */
  34.     private string $mailTo;
  35.     /**
  36.      * @var
  37.      */
  38.     protected ?string $captcha null;
  39.     public function __construct()
  40.     {
  41.         $this->createdAt   = new DateTimeImmutable();
  42.         $this->updatedAt   = new DateTimeImmutable();
  43.     }
  44.     public function getContactName(): ?string
  45.     {
  46.         return $this->contactName;
  47.     }
  48.     public function setContactName(string $contactName): void
  49.     {
  50.         $this->contactName $contactName;
  51.     }
  52.     public function getContactEmail(): ?string
  53.     {
  54.         return $this->contactEmail;
  55.     }
  56.     public function setContactEmail(string $contactEmail): void
  57.     {
  58.         $this->contactEmail $contactEmail;
  59.     }
  60.     public function getMailObject(): ?string
  61.     {
  62.         return $this->mailObject;
  63.     }
  64.     public function setMailObject(string $mailObject): void
  65.     {
  66.         $this->mailObject $mailObject;
  67.     }
  68.     public function getMessage(): ?string
  69.     {
  70.         return $this->message;
  71.     }
  72.     public function setMessage(string $message): void
  73.     {
  74.         $this->message $message;
  75.     }
  76.     public function getMailTo(): ?string
  77.     {
  78.         return $this->mailTo;
  79.     }
  80.     public function setMailTo(string $mailTo null): void
  81.     {
  82.         $this->mailTo $mailTo;
  83.     }
  84.     public function getCaptcha(): ?string
  85.     {
  86.         return $this->captcha;
  87.     }
  88.     public function setCaptcha(?string $captcha): void
  89.     {
  90.         $this->captcha $captcha;
  91.     }
  92. }