diff --git a/src/Symfony/Component/Security/Core/User/User.php b/src/Symfony/Component/Security/Core/User/User.php index 5429baa0cd..fa5cfb524e 100644 --- a/src/Symfony/Component/Security/Core/User/User.php +++ b/src/Symfony/Component/Security/Core/User/User.php @@ -83,7 +83,14 @@ final class User implements UserInterface, EquatableInterface } /** - * {@inheritdoc} + * Checks whether the user's account has expired. + * + * Internally, if this method returns false, the authentication system + * will throw an AccountExpiredException and prevent login. + * + * @return bool true if the user's account is non expired, false otherwise + * + * @see AccountExpiredException */ public function isAccountNonExpired(): bool { @@ -91,7 +98,14 @@ final class User implements UserInterface, EquatableInterface } /** - * {@inheritdoc} + * Checks whether the user is locked. + * + * Internally, if this method returns false, the authentication system + * will throw a LockedException and prevent login. + * + * @return bool true if the user is not locked, false otherwise + * + * @see LockedException */ public function isAccountNonLocked(): bool { @@ -99,7 +113,14 @@ final class User implements UserInterface, EquatableInterface } /** - * {@inheritdoc} + * Checks whether the user's credentials (password) has expired. + * + * Internally, if this method returns false, the authentication system + * will throw a CredentialsExpiredException and prevent login. + * + * @return bool true if the user's credentials are non expired, false otherwise + * + * @see CredentialsExpiredException */ public function isCredentialsNonExpired(): bool { @@ -107,7 +128,14 @@ final class User implements UserInterface, EquatableInterface } /** - * {@inheritdoc} + * Checks whether the user is enabled. + * + * Internally, if this method returns false, the authentication system + * will throw a DisabledException and prevent login. + * + * @return bool true if the user is enabled, false otherwise + * + * @see DisabledException */ public function isEnabled(): bool {