src/Entity/Contact.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContactRepository::class)]
  7. class Contact
  8. {
  9.     const TYPE_FORMCONTACT 'PAGE_CONTACT' ;
  10.     const TYPE_POPUPCONTACT 'HOME_POPUP' ;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $source null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $nom null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $societe null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $tel null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $email null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $message null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?\DateTime $createdAt null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?bool $privacyPolicy null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $raisonRdv null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $objet null;
  35.     const RAISON_RDV_CHOICES = [
  36.       => 'labels.rdv.general',
  37.       => 'labels.rdv.esthetique',
  38.       => 'labels.rdv.implant',
  39.       => 'labels.rdv.covid',
  40.       => 'labels.rdv.autre',
  41.      ]
  42.     ;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getSource(): ?string
  48.     {
  49.         return $this->source;
  50.     }
  51.     public function setSource(?string $source): static
  52.     {
  53.         $this->source $source;
  54.         return $this;
  55.     }
  56.     public function getNom(): ?string
  57.     {
  58.         return $this->nom;
  59.     }
  60.     public function setNom(?string $nom): static
  61.     {
  62.         $this->nom $nom;
  63.         return $this;
  64.     }
  65.     public function getSociete(): ?string
  66.     {
  67.         return $this->societe;
  68.     }
  69.     public function setSociete(?string $societe): static
  70.     {
  71.         $this->societe $societe;
  72.         return $this;
  73.     }
  74.     public function getTel(): ?string
  75.     {
  76.         return $this->tel;
  77.     }
  78.     public function setTel(?string $tel): static
  79.     {
  80.         $this->tel $tel;
  81.         return $this;
  82.     }
  83.     public function getEmail(): ?string
  84.     {
  85.         return $this->email;
  86.     }
  87.     public function setEmail(?string $email): static
  88.     {
  89.         $this->email $email;
  90.         return $this;
  91.     }
  92.     public function getMessage(): ?string
  93.     {
  94.         return $this->message;
  95.     }
  96.     public function setMessage(?string $message): static
  97.     {
  98.         $this->message $message;
  99.         return $this;
  100.     }
  101.     public function getCreatedAt(): ?\DateTime
  102.     {
  103.         return $this->createdAt;
  104.     }
  105.     public function setCreatedAt(?\DateTime $createdAt): static
  106.     {
  107.         $this->createdAt $createdAt;
  108.         return $this;
  109.     }
  110.     public function isPrivacyPolicy(): ?bool
  111.     {
  112.         return $this->privacyPolicy;
  113.     }
  114.     public function setPrivacyPolicy(?bool $privacyPolicy): static
  115.     {
  116.         $this->privacyPolicy $privacyPolicy;
  117.         return $this;
  118.     }
  119.     public function getRaisonRdv(): ?string
  120.     {
  121.         return $this->raisonRdv;
  122.     }
  123.     public function setRaisonRdv(?string $raisonRdv): static
  124.     {
  125.         $this->raisonRdv $raisonRdv;
  126.         return $this;
  127.     }
  128.     public function getObjet(): ?string
  129.     {
  130.         return $this->objet;
  131.     }
  132.     public function setObjet(?string $objet): static
  133.     {
  134.         $this->objet $objet;
  135.         return $this;
  136.     }
  137. }