[Security] Remove unnecessary inherited doc annotation

This commit is contained in:
Junaid Farooq 2021-03-02 10:49:57 +05:30 committed by Alexander M. Turek
parent 5985199754
commit 4b70db1e85
1 changed files with 32 additions and 4 deletions

View File

@ -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
{