@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * Constructor |
| 32 | 32 | * |
| 33 | - * @param array $ranking The ranking of candidates Key being ranking, |
|
| 33 | + * @param integer[] $ranking The ranking of candidates Key being ranking, |
|
| 34 | 34 | * value being a candidate id |
| 35 | 35 | */ |
| 36 | 36 | public function __construct(array $ranking) |
@@ -57,6 +57,9 @@ |
||
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param Ballot $ballot |
|
| 62 | + */ |
|
| 60 | 63 | protected function allocateVotes(&$ballot): Ballot |
| 61 | 64 | { |
| 62 | 65 | $weight = $ballot->getWeight(); |