src/Entity/Prospect.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="prospect")
  8.  */
  9. class Prospect
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\Column(type="string", nullable=false)
  19.      * @Assert\NotBlank(message="Merci de renseigner votre nom et prénom pour continuer.")
  20.      */
  21.     protected $nom;
  22.     
  23.     /**
  24.      * @ORM\Column(type="string", length=10, nullable=false)
  25.      * @Assert\NotBlank(message="Merci de renseigner un numéro de téléphone à 10 chiffres pour continuer.")
  26.      * @Assert\Length(
  27.      *      min=10,
  28.      *      max=10,
  29.      *      exactMessage="Votre numéro de téléphone doit faire au moins {{ limit }} chiffres",
  30.      *      )
  31.      * 
  32.      */
  33.         
  34.     protected $tel;
  35.     
  36.     /**
  37.      * @ORM\Column(type="string", length=5, nullable=false)
  38.      * @Assert\NotBlank(message="Merci de renseigner votre code postal pour continuer.")
  39.      * @Assert\Length(
  40.      *      min=2,
  41.      *      max=2,
  42.      *      exactMessage="Votre code postal doit être composé de {{ limit }} chiffres",
  43.      *      )
  44.      */
  45.     protected $dpt;
  46.     
  47.     /**
  48.      * @ORM\Column(type="string", nullable=true)
  49.      * @Assert\Email(
  50.      *     message = "Veuillez rentrer une adresse email valide pour continuer."
  51.      * )
  52.      */
  53.     protected $email
  54.     
  55.     
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      *     message = "Merci de renseigner votre adresse postale pour continuer."
  59.      * )
  60.      */
  61.     protected $code
  62.     
  63.      /**
  64.      * @ORM\Column(type="string", nullable=true)
  65.      *     message = "Merci de renseigner votre villee pour continuer."
  66.      * )
  67.      */
  68.     protected $date
  69.     
  70.    
  71.     
  72.     
  73.     
  74.     
  75.     public function getNom()
  76.     {
  77.         return $this->nom;
  78.     }
  79.     public function setNom($nom)
  80.     {
  81.         $this->nom $nom;
  82.         return $this;
  83.     }
  84.     
  85.     public function getTel()
  86.     {
  87.         return $this->tel;
  88.     }
  89.     public function setTel($tel)
  90.     {
  91.         $this->tel $tel;
  92.         return $this;
  93.     }
  94.     
  95.     public function getDpt()
  96.     {
  97.         return $this->dpt;
  98.     }
  99.     public function setDpt($dpt)
  100.     {
  101.         $this->dpt $dpt;
  102.         return $this;
  103.     }
  104.     
  105.     public function getDate()
  106.     {
  107.         return $this->date;
  108.     }
  109.     public function setDate($date)
  110.     {
  111.         $this->date $date;
  112.         return $this;
  113.     }
  114.     
  115.         public function getEmail()
  116.     {
  117.         return $this->email;
  118.     }
  119.     public function setEmail($email)
  120.     {
  121.         $this->email $email;
  122.         return $this;
  123.     }
  124.     
  125.     
  126.     public function getCode()
  127.     {
  128.         return $this->code;
  129.     }
  130.     public function setCode($code)
  131.     {
  132.         $this->code $code;
  133.         return $this;
  134.     }
  135.     
  136.     
  137.     
  138. }