Core\Role\RoleInterface (Component\Security)
Symfony\Component\Security\Core\Role\RoleInterface
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 at least one AccessDecisionManager.
Methods
string|null | getRole() Returns the role. |
Details
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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Core/Role/RoleInterface.html