| 1 | <?php |
||
| 10 | class ElectionManager |
||
| 11 | { |
||
| 12 | private $doctrineRegistry; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor. |
||
| 16 | * |
||
| 17 | * @param \Doctrine\Common\Persistence\ManagerRegistry $doctrineRegistry |
||
| 18 | 1 | */ |
|
| 19 | public function __construct(ManagerRegistry $doctrineRegistry) |
||
| 20 | 1 | { |
|
| 21 | 1 | $this->doctrineRegistry = $doctrineRegistry; |
|
| 22 | 1 | } |
|
| 23 | |||
| 24 | public function isElection(Poll $poll): boolean |
||
| 28 | |||
| 29 | public function getEligibleVoters(): array |
||
| 33 | |||
| 34 | public function calculateElectionResult(Poll $poll): array |
||
| 38 | |||
| 39 | public function getElectionResults(Poll $poll): array |
||
| 40 | { |
||
| 41 | return []; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function submitVotes(array $choices) |
||
| 45 | { |
||
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getElectionPollVotes(Poll $poll): array |
||
| 50 | { |
||
| 51 | return []; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getElectionWinner(Poll $poll): Choice |
||
| 58 | } |
||
| 59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.