30 lines
864 B
Markdown
30 lines
864 B
Markdown
|
## 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)**
|