32 lines
794 B
Markdown
32 lines
794 B
Markdown
|
## public Vote::getContextualRanking
|
||
|
|
||
|
### Description
|
||
|
|
||
|
```php
|
||
|
public Vote->getContextualRanking ( CondorcetPHP\Condorcet\Election $election ): array
|
||
|
```
|
||
|
|
||
|
Return the vote actual ranking complete for the contexte of the provide election. Election must be linked to the Vote object.
|
||
|
|
||
|
|
||
|
##### **election:** *```CondorcetPHP\Condorcet\Election```*
|
||
|
An election already linked to the Vote.
|
||
|
|
||
|
|
||
|
### Return value:
|
||
|
|
||
|
*(```array```)* Contextual full ranking.
|
||
|
|
||
|
|
||
|
|
||
|
### Throws:
|
||
|
|
||
|
* ```CondorcetPHP\Condorcet\Throwable\VoteNotLinkedException```
|
||
|
|
||
|
---------------------------------------
|
||
|
|
||
|
### Related method(s)
|
||
|
|
||
|
* [Vote::getContextualRankingAsString](../Vote%20Class/public%20Vote--getContextualRankingAsString.md)
|
||
|
* [Vote::getRanking](../Vote%20Class/public%20Vote--getRanking.md)
|