class Role implements RoleInterface

Role is a simple implementation of a RoleInterface where the role is a string.

Methods

__construct(string $role)

No description

string|null
getRole()

Returns the role.

Details

at line 27
__construct(string $role)

Parameters

string $role The role name

at line 35
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