public Election::getCondorcetWinner

February 21, 2026 ยท View on GitHub

Read it at the source

Description

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

  • \CondorcetPHP\Condorcet\Election::getResult()

Tutorial

  • This method has explanations and examples in the Documentation Book

Contents

  1. 1Description
  2. 2Return value
  3. 3Related
  4. 4Tutorial