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--sumValidVotesWeightWithConstraints.md

23 lines
758 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Election::sumValidVotesWeightWithConstraints
### Description
```php
public Election->sumValidVotesWeightWithConstraints ( ): int
```
Sum total votes weight in this election. If vote weight functionality is disable (default setting), it will return the number of registered votes. This method don't ignore votes constraints, only valid vote will be counted.
### Return value:
*(```int```)* (Int) Total vote weight
---------------------------------------
### Related method(s)
* [Election::countValidVoteWithConstraints](../Election%20Class/public%20Election--countValidVoteWithConstraints.md)
* [Election::countInvalidVoteWithConstraints](../Election%20Class/public%20Election--countInvalidVoteWithConstraints.md)