class SwitchUserRole extends Role

SwitchUserRole is used when the current user temporarily impersonates another one.

Methods

__construct(string $role, TokenInterface $source)

No description

string
getRole()

Returns a string representation of the role.

from Role
getSource()

Returns the original Token.

Details

at line line 30
__construct(string $role, TokenInterface $source)

Parameters

string $role
TokenInterface $source The original token

in Role at line line 33
string getRole()

Returns a string representation of the role.

Return Value

string

at line line 42
TokenInterface getSource()

Returns the original Token.

Return Value

TokenInterface The original TokenInterface instance