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/Candidate Class/public Candidate--setName.md

26 lines
510 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Candidate::setName
### Description
```php
public Candidate->setName ( string $name ): bool
```
Change the candidate name.
*If this will not cause conflicts if the candidate is already participating in elections and would namesake. This situation will throw an exception.*
##### **name:** *```string```*
Candidate Name.
### Return value:
*(```bool```)* In case of success, return TRUE
### Throws:
* ```CondorcetPHP\Condorcet\Throwable\CandidateInvalidNameException```