X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/8d720a89b9a049ca5e669e2bb6e22c2343c71184..1c3893d68e8cdbe1503dcca873f1ede32fa6cdbb:/Entity/User.php?ds=sidebyside diff --git a/Entity/User.php b/Entity/User.php index 124f6e5..089b8cd 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -45,14 +45,14 @@ class User extends BaseUser { * @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 + * @param bool $active The user is active + * @param bool $enable The user is enable * @param ?string $pseudonym The user pseudonym * @param ?string $slug The user slug */ - public function __construct(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $disabled = false, ?string $pseudonym = null, ?string $slug = null) { + public function __construct(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $enable = true, ?string $pseudonym = null, ?string $slug = null) { //Call parent constructor - parent::__construct($mail, $password, $civility, $forename, $surname, $active, $disabled); + parent::__construct($mail, $password, $civility, $forename, $surname, $active, $enable); //Set defaults $this->pseudonym = $pseudonym;