Skip to content

public Election::getCandidateObjectFromName

Read it at the source

Description

php
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

Released under the MIT License.