Role
class Role implements RoleInterface
Role is a simple implementation of a RoleInterface where the role is a string.
Methods
__construct(
string $role)
Constructor.
string|null
getRole()
Returns the role.
__toString()
No description
Details
at line 29
__construct(
string $role)
Constructor.
at line 37
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.