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/Vote Class/public Vote--setWeight.md

31 lines
568 B
Markdown

## public Vote::setWeight
### Description
```php
public Vote->setWeight ( int $newWeight ): int
```
Set a vote weight. The vote weight capacity must be active at the election level for producing effect on the result.
##### **newWeight:** *```int```*
The new vote weight.
### Return value:
*(```int```)* New weight.
### Throws:
* ```CondorcetPHP\Condorcet\Throwable\VoteInvalidFormatException```
---------------------------------------
### Related method(s)
* [Vote::getWeight](../Vote%20Class/public%20Vote--getWeight.md)