- * @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(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $enable = true) {