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--getCondorcetLoser.md

30 lines
862 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Election::getCondorcetLoser
### Description
```php
public Election->getCondorcetLoser ( ): ?CondorcetPHP\Condorcet\Candidate
```
Get the natural Condorcet loser if there is one.
### Return value:
*(```?CondorcetPHP\Condorcet\Candidate```)* Candidate object given. Null if there are no available loser.
---------------------------------------
### Related method(s)
* [Election::getCondorcetWinner](../Election%20Class/public%20Election--getCondorcetWinner.md)
* [Election::getLoser](../Election%20Class/public%20Election--getLoser.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)**