Skip to content

public Vote::getWeight

Read it at the source

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.

Parameter

context: ?CondorcetPHP\Condorcet\Election

In the context of wich election? (optional).

Return value

(int) Weight. Default weight is 1.


Released under the MIT License.