public Vote::removeCandidate

November 22, 2025 ยท View on GitHub

Read it at the source

Description

public Vote->removeCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate ): true

Remove candidate from ranking. Set a new ranking and archive the old ranking.

Parameter

candidate: CondorcetPHP\Condorcet\Candidate|string

Candidate object or string.

Return value

(true) True on success.

Throws:

  • CondorcetPHP\Condorcet\Throwable\CandidateDoesNotExistException

Related

  • Vote::setRanking()

Contents

  1. 1Description
  2. 2Parameter
  3. 2.1candidate: CondorcetPHP\Condorcet\Candidate|string
  4. 3Return value
  5. 4Throws:
  6. 5Related