1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/condorcet/Documentation/Vote Class/public Vote--getContextualRanking.md

32 lines
794 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## 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)