1
0
This commit is contained in:
2022-09-21 14:01:45 +02:00
parent 0a30f39eb4
commit cfee4d93d0
349 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
## public Election::isRegisteredCandidate
### Description
```php
public Election->isRegisteredCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate [, bool $strictMode = true] ): bool
```
Check if a candidate is already taking part in the election.
##### **candidate:** *```CondorcetPHP\Condorcet\Candidate|string```*
Candidate object or candidate string name. String name works only if the strict mode is active.
##### **strictMode:** *```bool```*
Search comparison mode. In strict mode, candidate objects are compared strictly and a string input can't match anything.
If strict mode is false, the comparison will be based on name.
### Return value:
*(```bool```)* True / False
---------------------------------------
### Related method(s)
* [Election::addCandidate](../Election%20Class/public%20Election--addCandidate.md)