1.5 KiB
1.5 KiB
public Election::getResult
Description
public Election->getResult ( [?string $method = null , array $methodOptions = []] ): CondorcetPHP\Condorcet\Result
Get a full ranking from an advanced Condorcet method. Have a look on the supported method, or create your own algorithm.
method: ?string
Not required for use election default method. Set the string name of the algorithm for use of a specific one.
methodOptions: array
Array of option for some methods. Look at each method documentation.
Return value:
(CondorcetPHP\Condorcet\Result
) An Condorcet/Result Object (implementing ArrayAccess and Iterator, can be use like an array ordered by rank)
Throws:
CondorcetPHP\Condorcet\Throwable\AlgorithmException