src/Form/Model/Security/RegisterModel.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Form\Model\Security;
  3. use App\Entity\Country;
  4. use App\Entity\UserGroup;
  5. class RegisterModel
  6. {
  7.     /**
  8.      * @var string
  9.      */
  10.     public $firstname;
  11.     /**
  12.      * @var string
  13.      */
  14.     public $lastname;
  15.     /**
  16.      * @var string
  17.      */
  18.     public $email;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     public $emailConfirm;
  23.     /**
  24.      * @var Country
  25.      */
  26.     public $country;
  27.     /**
  28.      * @var string
  29.      */
  30.     public $password;
  31.     /**
  32.      * @var string
  33.      */
  34.     public $passwordRepeat;
  35.     /**
  36.      * @var bool
  37.      */
  38.     public $policy;
  39.     /**
  40.      * @var string
  41.      */
  42.     public $role UserGroup::ROLE_USER;
  43.     /**
  44.      * RegisterModel constructor.
  45.      * @param Country $country
  46.      */
  47.     public function __construct(?Country $country)
  48.     {
  49.         $this->country $country;
  50.     }
  51. }