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

34 lines
807 B
Markdown

## public Election::setMethodOption
### Description
```php
public Election->setMethodOption ( string $method , string $optionName , BackedEnum|array|string|int|float $optionValue ): bool
```
Set an option to a method module and reset his cache for this election object. Be aware that this option applies to all election objects and remains in memory.
##### **method:** *```string```*
Method name or class path.
##### **optionName:** *```string```*
Option name.
##### **optionValue:** *```BackedEnum|array|string|int|float```*
Option Value.
### Return value:
*(```bool```)* True on success. Else False.
---------------------------------------
### Related method(s)
* [Result::getMethodOptions](../Result%20Class/public%20Result--getMethodOptions.md)