Symfony\Component\Security\Core\Role\RoleInterface::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.
Signature
public function getRole()
Returns
- string|null
- A string representation of the role, or null