interface RoleInterface

RoleInterface represents a role granted to a user.

A role must either have a string representation or it needs to be explicitly supported by an at least one AccessDecisionManager.


string|null getRole()

Returns the role.


at line 34
public string|null getRole()

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.

Return Value

string|null A string representation of the role, or null