public Election::getCandidateObjectFromName

February 24, 2026 ยท View on GitHub

Read it at the source

Description

public Election->getCandidateObjectFromName ( string $candidateName ): ?CondorcetPHP\Condorcet\Candidate

Find the candidate object from its name and return it.

Parameter

candidateName: string

Name of the candidate.

Return value

(?CondorcetPHP\Condorcet\Candidate) Candidate object

Contents

  1. 1Description
  2. 2Parameter
  3. 2.1candidateName: string
  4. 3Return value