Role

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.

Details

__construct(string $role)

Constructor.

Parameters

string $role The role name

string|null