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

510 B

public Candidate::setName

Description

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