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 static Election--setMaxVoteNumber.md

26 lines
686 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public static Election::setMaxVoteNumber
### Description
```php
public static Election::setMaxVoteNumber ( ?int $maxVotesNumber ): ?int
```
Add a limitation on Election::addVote and related methods. You can't add new vote y the number of registered vote is equall ou superior of this limit.
##### **maxVotesNumber:** *```?int```*
Null will deactivate this functionality. An integer will fix the limit.
### Return value:
*(```?int```)* *(int or null)* The new limit.
---------------------------------------
### Related method(s)
* [static Election::setMaxParseIteration](../Election%20Class/public%20static%20Election--setMaxParseIteration.md)