File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
src/Symfony/Component/Security/Core/Authentication/Token Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,7 @@ public function getUser()
77
77
}
78
78
79
79
/**
80
- * Sets the user in the token.
81
- *
82
- * The user can be a UserInterface instance, or an object implementing
83
- * a __toString method or the username as a regular string.
84
- *
85
- * @param string|object $user The user
86
- *
87
- * @throws \InvalidArgumentException
80
+ * {@inheritdoc}
88
81
*/
89
82
public function setUser ($ user )
90
83
{
Original file line number Diff line number Diff line change @@ -47,17 +47,22 @@ public function getCredentials();
47
47
/**
48
48
* Returns a user representation.
49
49
*
50
- * @return mixed Can be a UserInterface instance, an object implementing a __toString method,
51
- * or the username as a regular string
50
+ * @return string|object Can be a UserInterface instance, an object implementing a __toString method,
51
+ * or the username as a regular string
52
52
*
53
53
* @see AbstractToken::setUser()
54
54
*/
55
55
public function getUser ();
56
56
57
57
/**
58
- * Sets a user.
58
+ * Sets the user in the token .
59
59
*
60
- * @param mixed $user
60
+ * The user can be a UserInterface instance, or an object implementing
61
+ * a __toString method or the username as a regular string.
62
+ *
63
+ * @param string|object $user The user
64
+ *
65
+ * @throws \InvalidArgumentException
61
66
*/
62
67
public function setUser ($ user );
63
68
You can’t perform that action at this time.
0 commit comments