class Role

deprecated since Symfony 4.3, to be removed in 5.0. Use strings as roles instead.

Role is a simple implementation representing a role identified by a string.

Methods

__construct(string $role)

No description

string
getRole()

Returns a string representation of the role.

string
__toString()

No description

Details

at line 25
__construct(string $role)

Parameters

string $role

at line 39
string getRole()

Returns a string representation of the role.

Return Value

string

at line 44
string __toString()

Return Value

string