Improved the phpdoc for security token classes
This commit is contained in:
parent
016b0a9ad2
commit
7b6d115a27
@ -88,7 +88,7 @@ abstract class AbstractToken implements TokenInterface
|
|||||||
* The user can be a UserInterface instance, or an object implementing
|
* The user can be a UserInterface instance, or an object implementing
|
||||||
* a __toString method or the username as a regular string.
|
* a __toString method or the username as a regular string.
|
||||||
*
|
*
|
||||||
* @param mixed $user The user
|
* @param string|object $user The user
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public function setUser($user)
|
public function setUser($user)
|
||||||
|
@ -26,10 +26,10 @@ class UsernamePasswordToken extends AbstractToken
|
|||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param string $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method.
|
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method.
|
||||||
* @param string $credentials This usually is the password of the user
|
* @param string $credentials This usually is the password of the user
|
||||||
* @param string $providerKey The provider key
|
* @param string $providerKey The provider key
|
||||||
* @param RoleInterface[] $roles An array of roles
|
* @param RoleInterface[]|string[] $roles An array of roles
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user