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

31 lines
548 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## public Election::setNumberOfSeats
### Description
```php
public Election->setNumberOfSeats ( int $seats ): int
```
Set number of Seats for STV methods.
##### **seats:** *```int```*
The number of seats for proportional methods.
### Return value:
*(```int```)* Number of seats.
### Throws:
* ```CondorcetPHP\Condorcet\Throwable\NoSeatsException```
---------------------------------------
### Related method(s)
* [Election::getNumberOfSeats](../Election%20Class/public%20Election--getNumberOfSeats.md)