SwitchUserRole
extends Role
in package
SwitchUserRole is used when the current user temporarily impersonates another one.
Tags
Table of Contents
- $deprecationTriggered : mixed
- $role : mixed
- $source : mixed
- __construct() : mixed
- __toString() : string
- getRole() : string
- Returns a string representation of the role.
- getSource() : TokenInterface
- Returns the original Token.
Properties
$deprecationTriggered
private
mixed
$deprecationTriggered
= false
$role
private
mixed
$role
$source
private
mixed
$source
Methods
__construct()
public
__construct(string $role, TokenInterface $source) : mixed
Parameters
- $role : string
-
The role as a string
- $source : TokenInterface
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getRole()
Returns a string representation of the role.
public
getRole() : string
Return values
string —getSource()
Returns the original Token.
public
getSource() : TokenInterface
Return values
TokenInterface —The original TokenInterface instance