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

26 lines
588 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Vote::getWeight
### Description
```php
public Vote->getWeight ( [?CondorcetPHP\Condorcet\Election $context = null] ): int
```
Get the vote weight. The vote weight capacity must be active at the election level for producing effect on the result.
##### **context:** *```?CondorcetPHP\Condorcet\Election```*
In the context of wich election? (optional).
### Return value:
*(```int```)* Weight. Default weight is 1.
---------------------------------------
### Related method(s)
* [Vote::setWeight](../Vote%20Class/public%20Vote--setWeight.md)