1 | <?php |
||
10 | class PollManager |
||
11 | { |
||
12 | protected $doctrineRegistry; |
||
13 | protected $electionManager; |
||
14 | |||
15 | /** |
||
16 | * Constructor. |
||
17 | * |
||
18 | * @param \Doctrine\Common\Persistence\ManagerRegistry $doctrineRegistry |
||
19 | 1 | * @param \AppBundle\Utils\ElectionManager $electionManager |
|
20 | */ |
||
21 | 1 | public function __construct(ManagerRegistry $doctrineRegistry, ElectionManager $electionManager) |
|
26 | |||
27 | public function getPolls($sort, boolean $current = false): array |
||
33 | 1 | ||
34 | /** |
||
35 | 1 | * Get an array of current polls (objects). |
|
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getCurrentPolls(): array |
||
45 | |||
46 | /** |
||
47 | * Get an array of eligible votes. |
||
48 | * |
||
49 | * @param AppBundle/Entity/PollType $type |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getEligibleVoters(PollType $type): array |
||
57 | 1 | ||
58 | /** |
||
59 | 1 | * Get an array of all polls (objects). |
|
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getAllPolls(): array |
||
69 | |||
70 | /** |
||
71 | * Get poll statistics. |
||
72 | * |
||
73 | * @param Poll $poll |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | public function getPollStats(Poll $poll): array |
||
84 | |||
85 | /** |
||
86 | * Get the result of the poll (in terms of a choice). |
||
87 | * |
||
88 | * @param Poll $poll |
||
89 | * |
||
90 | * @return \AppBundle\Entity\Choice |
||
91 | */ |
||
92 | public function getPollResult(Poll $poll): Choice |
||
99 | |||
100 | public function getStandardPollVotes(Poll $poll): array |
||
104 | |||
105 | public function markPollClosed(Poll $poll) |
||
109 | } |
||
110 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.