src/Form/ContactTypeData.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Validator\Constraints as Assert;
  4. class ContactTypeData
  5. {
  6.     /** @var  string $nom */
  7.     private $nom;
  8.     /** @var  string $prenom */
  9.     private $prenom;
  10.     /**
  11.      * @var  string $email
  12.      * @Assert\Email()
  13.      */
  14.     private $email;
  15.     /** @var string $message */
  16.     private $message;
  17.     /** @var string $message */
  18.     private $destinataire;
  19.     /** @var string $adresse */
  20.     private $adresse// honeypot
  21.     /** @var string $cptcha */
  22.     private $cptcha;
  23.     /**
  24.      * @return string
  25.      */
  26.     public function getNom(): ?string
  27.     {
  28.         return $this->nom;
  29.     }
  30.     /**
  31.      * @param string $nom
  32.      */
  33.     public function setNom(string $nom)
  34.     {
  35.         $this->nom $nom;
  36.     }
  37.     /**
  38.      * @return string
  39.      */
  40.     public function getPrenom(): ?string
  41.     {
  42.         return $this->prenom;
  43.     }
  44.     /**
  45.      * @param string $prenom
  46.      */
  47.     public function setPrenom(string $prenom)
  48.     {
  49.         $this->prenom $prenom;
  50.     }
  51.     /**
  52.      * @return string
  53.      */
  54.     public function getEmail(): ?string
  55.     {
  56.         return $this->email;
  57.     }
  58.     /**
  59.      * @param string $email
  60.      */
  61.     public function setEmail(string $email)
  62.     {
  63.         $this->email $email;
  64.     }
  65.     /**
  66.      * @return mixed
  67.      */
  68.     public function getMessage()
  69.     {
  70.         return $this->message;
  71.     }
  72.     /**
  73.      * @param mixed $message
  74.      */
  75.     public function setMessage($message)
  76.     {
  77.         $this->message $message;
  78.     }
  79.     /**
  80.      * @return mixed
  81.      */
  82.     public function getAdresse()
  83.     {
  84.         return $this->adresse;
  85.     }
  86.     /**
  87.      * @param mixed $adresse
  88.      */
  89.     public function setAdresse($adresse)
  90.     {
  91.         $this->adresse $adresse;
  92.     }
  93.     /**
  94.      * @return mixed
  95.      */
  96.     public function getCptcha()
  97.     {
  98.         return $this->cptcha;
  99.     }
  100.     /**
  101.      * @param mixed $cptcha
  102.      */
  103.     public function setCptcha($cptcha)
  104.     {
  105.         $this->cptcha $cptcha;
  106.     }
  107.     /**
  108.      * @return mixed
  109.      */
  110.     public function getDestinataire()
  111.     {
  112.         return $this->destinataire;
  113.     }
  114.     /**
  115.      * @param mixed $destinataire
  116.      */
  117.     public function setDestinataire($destinataire)
  118.     {
  119.         $this->destinataire $destinataire;
  120.     }
  121. }