From: Raphaƫl Gertz Date: Mon, 11 Dec 2023 03:03:49 +0000 (+0100) Subject: Rename disabled to enable X-Git-Tag: 0.2~44 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/98b2037f369687f34a62317aadae1f5a66c12ff4 Rename disabled to enable --- 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;