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--canAddCandidate.md
2022-09-21 14:01:45 +02:00

662 B

public Election::canAddCandidate

Description

public Election->canAddCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate ): bool

Check if a candidate is already registered. Uses strict Vote object comparison, but also string naming comparison in the election.

candidate: CondorcetPHP\Condorcet\Candidate|string

String or Condorcet/Vote object.

Return value:

(bool) True if your candidate is available, false otherwise.