Skip to content

Commit

Permalink
[Security] Remove unnecessary inherited doc annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidbinfarooq authored and derrabus committed Mar 2, 2021
1 parent 753f533 commit c98d5a5
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,59 @@ public function getUsername(): string
}

/**
* {@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
{
return $this->accountNonExpired;
}

/**
* {@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
{
return $this->accountNonLocked;
}

/**
* {@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
{
return $this->credentialsNonExpired;
}

/**
* {@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
{
Expand Down

0 comments on commit c98d5a5

Please sign in to comment.