class Role implements RoleInterface
Role is a simple implementation of a RoleInterface where the role is a string.
__construct(string $role) Constructor. | ||
string|null | getRole() Returns the role. |
Constructor.
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/2.8/Symfony/Component/Security/Core/Role/Role.html