@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Condorcet\Algo\Method; |
13 | 13 | use Condorcet\Algo\MethodInterface; |
14 | -use Condorcet\Algo\Tools\PairwiseStats; |
|
15 | 14 | use Condorcet\Result; |
16 | 15 | |
17 | 16 | // DODGSON Quick is an approximation for Dodgson method | https://www.maa.org/sites/default/files/pdf/cmj_ftp/CMJ/September%202010/3%20Articles/6%2009-229%20Ratliff/Dodgson_CMJ_Final.pdf |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use Condorcet\Algo\MethodInterface; |
14 | 14 | use Condorcet\Algo\Tools\Permutation; |
15 | 15 | use Condorcet\Condorcet; |
16 | -use Condorcet\Election; |
|
17 | 16 | use Condorcet\Result; |
18 | 17 | |
19 | 18 | // Kemeny-Young is a Condorcet Algorithm | http://en.wikipedia.org/wiki/Kemeny%E2%80%93Young_method |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Condorcet\Algo\Method; |
13 | 13 | use Condorcet\Algo\MethodInterface; |
14 | 14 | use Condorcet\Algo\Tools\PairwiseStats; |
15 | -use Condorcet\CondorcetException; |
|
16 | 15 | use Condorcet\Result; |
17 | 16 | |
18 | 17 | // DODGSON is a Condorcet Algorithm | http://en.wikipedia.org/wiki/DODGSON_method |
@@ -11,8 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Condorcet\Algo\Method; |
13 | 13 | use Condorcet\Algo\MethodInterface; |
14 | -use Condorcet\Algo\Tools\PairwiseStats; |
|
15 | -use Condorcet\Election; |
|
16 | 14 | use Condorcet\Result; |
17 | 15 | |
18 | 16 | // Ranker Pairs is a Condorcet Algorithm | http://en.wikipedia.org/wiki/Ranked_Pairs |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Condorcet; |
11 | 11 | |
12 | 12 | use Condorcet\CondorcetException; |
13 | -use Condorcet\Election; |
|
14 | 13 | use Condorcet\Result; |
15 | 14 | |
16 | 15 | // Registering native Condorcet Methods implementation |
@@ -21,6 +21,9 @@ |
||
21 | 21 | |
22 | 22 | /////////// Magic /////////// |
23 | 23 | |
24 | + /** |
|
25 | + * @param Election $election |
|
26 | + */ |
|
24 | 27 | public function __construct (?Election $election = null) |
25 | 28 | { |
26 | 29 | if ($election !== null) : |
@@ -448,6 +448,9 @@ discard block |
||
448 | 448 | endif; |
449 | 449 | } |
450 | 450 | |
451 | + /** |
|
452 | + * @return integer |
|
453 | + */ |
|
451 | 454 | public function getCandidateId (int $candidate_key, bool $onlyName = false) |
452 | 455 | { |
453 | 456 | if (!array_key_exists($candidate_key, $this->_Candidates)) : |
@@ -978,6 +981,9 @@ discard block |
||
978 | 981 | |
979 | 982 | //:: GET RAW DATA ::// |
980 | 983 | |
984 | + /** |
|
985 | + * @return Pairwise |
|
986 | + */ |
|
981 | 987 | public function getPairwise (bool $explicit = true) |
982 | 988 | { |
983 | 989 | $this->prepareResult(); |
@@ -11,9 +11,7 @@ |
||
11 | 11 | |
12 | 12 | use Condorcet\CondorcetException; |
13 | 13 | use Condorcet\CondorcetVersion; |
14 | -use Condorcet\Candidate; |
|
15 | 14 | use Condorcet\Election; |
16 | -use Condorcet\Linkable; |
|
17 | 15 | use Condorcet\Vote; |
18 | 16 | |
19 | 17 |