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/Election Class/public Election--getCondorcetWinner.md

30 lines
864 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Election::getCondorcetWinner
### Description
```php
public Election->getCondorcetWinner ( ): ?CondorcetPHP\Condorcet\Candidate
```
Get the natural Condorcet winner if there is one.
### Return value:
*(```?CondorcetPHP\Condorcet\Candidate```)* Candidate object given. Null if there are no available winner.
---------------------------------------
### Related method(s)
* [Election::getCondorcetLoser](../Election%20Class/public%20Election--getCondorcetLoser.md)
* [Election::getWiner](../Election%20Class/public%20Election--getWiner.md)
* [Election::getResult](../Election%20Class/public%20Election--getResult.md)
---------------------------------------
### Examples and explanation
* **[Manual - Natural Condorcet](https://github.com/julien-boudry/Condorcet/wiki/II-%23-C.-Result-%23-1.-Natural-Condorcet)**