VoterRegistry
in package
Table of Contents
Properties
- $voters : array<string|int, VoterInterface>
Methods
- getVoters() : array<string|int, VoterInterface>
- Get all registered voters
- register() : mixed
- Register a voter
Properties
$voters
private
array<string|int, VoterInterface>
$voters
= []
Methods
getVoters()
Get all registered voters
public
getVoters() : array<string|int, VoterInterface>
Return values
array<string|int, VoterInterface>register()
Register a voter
public
register(VoterInterface $voter) : mixed
Parameters
- $voter : VoterInterface