src/Entity/ContactForm.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactFormRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassContactFormRepository::class)]
  6. class ContactForm
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type"integer")]
  11.     private $id;
  12.     #[ORM\Column(type"string"length255)]
  13.     private $gender;
  14.     #[ORM\Column(type"string"length255)]
  15.     private $firstName;
  16.     #[ORM\Column(type"string"length255)]
  17.     private $lastName;
  18.     #[ORM\Column(type"string"length255)]
  19.     private $email;
  20.     #[ORM\Column(type"string"length255nullabletrue)]
  21.     private $phone;
  22.     #[ORM\Column(type"text")]
  23.     private $content;
  24.     #[ORM\Column(type"datetime")]
  25.     private $createdAt;
  26.     #[ORM\Column(type"boolean")]
  27.     private $rgpd;
  28.     #[ORM\Column(type"string"length255)]
  29.     private $subject;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getGender(): ?string
  35.     {
  36.         return $this->gender;
  37.     }
  38.     public function setGender(string $gender): self
  39.     {
  40.         $this->gender $gender;
  41.         return $this;
  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 getPhone(): ?string
  71.     {
  72.         return $this->phone;
  73.     }
  74.     public function setPhone(?string $phone): self
  75.     {
  76.         $this->phone $phone;
  77.         return $this;
  78.     }
  79.     public function getContent(): ?string
  80.     {
  81.         return $this->content;
  82.     }
  83.     public function setContent(string $content): self
  84.     {
  85.         $this->content $content;
  86.         return $this;
  87.     }
  88.     public function getCreatedAt(): ?\DateTime
  89.     {
  90.         return $this->createdAt;
  91.     }
  92.     public function setCreatedAt(\DateTime $createdAt): self
  93.     {
  94.         $this->createdAt $createdAt;
  95.         return $this;
  96.     }
  97.     public function getRgpd(): ?bool
  98.     {
  99.         return $this->rgpd;
  100.     }
  101.     public function setRgpd(bool $rgpd): self
  102.     {
  103.         $this->rgpd $rgpd;
  104.         return $this;
  105.     }
  106.     public function getSubject(): ?string
  107.     {
  108.         return $this->subject;
  109.     }
  110.     public function setSubject(string $subject): self
  111.     {
  112.         $this->subject $subject;
  113.         return $this;
  114.     }
  115. }