public Election::canAddCandidate
Description
php
public Election->canAddCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate ): bool
Check if a candidate is already registered. Equivalent of !$election->hasCandidate($candidate, false)
.
Parameter
candidate: CondorcetPHP\Condorcet\Candidate|string
String or Condorcet/Vote object.
Return value
(bool
) True if your candidate is available, false otherwise.