<?php
namespace App\Entity;
use App\Repository\ContactRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactRepository::class)]
class Contact
{
const TYPE_FORMCONTACT = 'PAGE_CONTACT' ;
const TYPE_POPUPCONTACT = 'HOME_POPUP' ;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $source = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $societe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tel = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $message = null;
#[ORM\Column(nullable: true)]
private ?\DateTime $createdAt = null;
#[ORM\Column(nullable: true)]
private ?bool $privacyPolicy = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $raisonRdv = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $objet = null;
const RAISON_RDV_CHOICES = [
0 => 'labels.rdv.general',
1 => 'labels.rdv.esthetique',
2 => 'labels.rdv.implant',
3 => 'labels.rdv.covid',
4 => 'labels.rdv.autre',
]
;
public function getId(): ?int
{
return $this->id;
}
public function getSource(): ?string
{
return $this->source;
}
public function setSource(?string $source): static
{
$this->source = $source;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): static
{
$this->nom = $nom;
return $this;
}
public function getSociete(): ?string
{
return $this->societe;
}
public function setSociete(?string $societe): static
{
$this->societe = $societe;
return $this;
}
public function getTel(): ?string
{
return $this->tel;
}
public function setTel(?string $tel): static
{
$this->tel = $tel;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): static
{
$this->email = $email;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): static
{
$this->message = $message;
return $this;
}
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTime $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function isPrivacyPolicy(): ?bool
{
return $this->privacyPolicy;
}
public function setPrivacyPolicy(?bool $privacyPolicy): static
{
$this->privacyPolicy = $privacyPolicy;
return $this;
}
public function getRaisonRdv(): ?string
{
return $this->raisonRdv;
}
public function setRaisonRdv(?string $raisonRdv): static
{
$this->raisonRdv = $raisonRdv;
return $this;
}
public function getObjet(): ?string
{
return $this->objet;
}
public function setObjet(?string $objet): static
{
$this->objet = $objet;
return $this;
}
}