class SwitchUserRole extends Role
SwitchUserRole is used when the current user temporarily impersonates another one.
__construct(string $role, TokenInterface $source) Constructor. | ||
string|null | getRole() Returns the role. | from Role |
TokenInterface | getSource() Returns the original Token. |
Constructor.
Returns the role.
This method returns a string representation whenever possible.
When the role cannot be represented with sufficient precision by a string, it should return null.
Returns the original Token.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Core/Role/SwitchUserRole.html