<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="prospect")
*/
class Prospect
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string", nullable=false)
* @Assert\NotBlank(message="Merci de renseigner votre nom et prénom pour continuer.")
*/
protected $nom;
/**
* @ORM\Column(type="string", length=10, nullable=false)
* @Assert\NotBlank(message="Merci de renseigner un numéro de téléphone à 10 chiffres pour continuer.")
* @Assert\Length(
* min=10,
* max=10,
* exactMessage="Votre numéro de téléphone doit faire au moins {{ limit }} chiffres",
* )
*
*/
protected $tel;
/**
* @ORM\Column(type="string", length=2, nullable=false)
* @Assert\NotBlank(message="Merci de renseigner uvotre code postal pour continuer.")
* @Assert\Length(
* min=2,
* max=2,
* exactMessage="Votre code postal doit être composé de {{ limit }} chiffres",
* )
*/
protected $dpt;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Email(
* message = "Veuillez rentrer une adresse email valide pour continuer."
* )
*/
protected $email;
public function getNom()
{
return $this->nom;
}
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
public function getTel()
{
return $this->tel;
}
public function setTel($tel)
{
$this->tel = $tel;
return $this;
}
public function getDpt()
{
return $this->dpt;
}
public function setDpt($dpt)
{
$this->dpt = $dpt;
return $this;
}
/*public function getDate()
{
return $this->date;
}
public function setDate($date)
{
$this->date = $date;
return $this;
}*/
public function getEmail()
{
return $this->email;
}
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/* public function getCode()
{
return $this->code;
}
public function setCode($code)
{
$this->code = $code;
return $this;
}*/
}