src/Validation/Form/LostPasswordForm.php line 25

Open in your IDE?
  1. <?php
  2. /**
  3.  * Model class for lost password form
  4.  *
  5.  * PHP version 7.4
  6.  *
  7.  * @category   App
  8.  * @package    App\Form\Model
  9.  * @author     Momcilo Radotic <m.radotic@outlook.com>
  10.  * @copyright  2021 MoravaPro
  11.  * @license    MoravaPro
  12.  */
  13. namespace App\Validation\Form;
  14. use Symfony\Component\Validator\Constraints as Asserts;
  15. /**
  16.  * Model class for lost password form
  17.  *
  18.  * @category   App
  19.  * @package    App\Validation\Form
  20.  */
  21. class LostPasswordForm
  22. {
  23.     /**
  24.      * @var string
  25.      *
  26.      * @Asserts\Email
  27.      * @Asserts\NotBlank
  28.      * @Asserts\NotNull
  29.      */
  30.     private $email;
  31.     /**
  32.      * @return string
  33.      */
  34.     public function getEmail(): ?string
  35.     {
  36.         return $this->email;
  37.     }
  38.     /**
  39.      * @param string $email
  40.      */
  41.     public function setEmail(string $email): void
  42.     {
  43.         $this->email $email;
  44.     }
  45. }