Namespace

Symfony\Component\Security\Core\Role

Role Role is a simple implementation of a RoleInterface where the role is a string.
RoleHierarchy RoleHierarchy defines a role hierarchy.
SwitchUserRole SwitchUserRole is used when the current user temporarily impersonates another one.

Interfaces

RoleHierarchyInterface RoleHierarchyInterface is the interface for a role hierarchy.
RoleInterface RoleInterface represents a role granted to a user.