Improved the phpdoc for security token classes

This commit is contained in:
Christophe Coevoet 2014-10-24 11:21:28 +02:00
parent 016b0a9ad2
commit 7b6d115a27
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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
*/ */