- */
- public function __construct(string $mail) {
- //With mail
- if (!empty($this->mail = $mail)) {
- $this->password = $mail;
- } else {
- $this->password = '';
- }
-
+ * @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 $disabled The user disabled
+ */
+ public function __construct(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $disabled = false) {