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

1.4 KiB

public Election::addVote

Description

public Election->addVote ( CondorcetPHP\Condorcet\Vote|array|string $vote [, array|string|null $tags = null] ): CondorcetPHP\Condorcet\Vote

Add a vote to an election.

vote: CondorcetPHP\Condorcet\Vote|array|string

String or array representation. Or CondorcetPHP\Condorcet\Vote object. If you not provide yourself Vote object, a new one will be generate for you.

tags: array|string|null

String separated by commas or an array. Will add tags to the vote object for you. But you can too add it yourself to Vote object.

Return value:

(CondorcetPHP\Condorcet\Vote) The vote object.

Throws:

  • CondorcetPHP\Condorcet\Throwable\VoteMaxNumberReachedException


Examples and explanation