- * @param ?string $mail The user mail
- */
- public function __construct(?string $mail = null) {
- //With mail
- if ($mail !== null && !empty($mail)) {
- $this->mail = $mail;
- $this->password = $mail;
- //Without mail
- } else {
- $this->mail = '';
- $this->password = '';
- }
-
+ * @param string $mail The user mail
+ * @param string $password The user password
+ * @param ?Civility $civility The user civility
+ * @param ?string $forename The user forename
+ * @param ?string $surname The user surname
+ * @param bool $active The user active
+ * @param bool $enable The user enable
+ */
+ public function __construct(protected string $mail, protected string $password, protected ?Civility $civility = null, protected ?string $forename = null, protected ?string $surname = null, protected bool $active = false, protected bool $enable = true) {