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

24 lines
875 B
Markdown

## public Election::getState
### Description
```php
public Election->getState ( ): CondorcetPHP\Condorcet\ElectionProcess\ElectionState
```
Get the election process level.
### Return value:
*(```CondorcetPHP\Condorcet\ElectionProcess\ElectionState```)* ElectionState::CANDIDATES_REGISTRATION: Candidate registered state. No votes, no result, no cache.
ElectionState::VOTES_REGISTRATION: Voting registration phase. Pairwise cache can exist thanks to dynamic computation if voting phase continue after the first get result. But method result never exist.
3: Result phase: Some method result may exist, pairwise exist. An election will return to Phase 2 if votes are added or modified dynamically.
---------------------------------------
### Related method(s)
* [Election::setStateToVote](../Election%20Class/public%20Election--setStateToVote.md)