public Vote::setWeight

November 22, 2025 ยท View on GitHub

Read it at the source

Description

public Vote->setWeight ( int $newWeight ): int

Set a vote weight. The vote weight capacity must be active at the election level for producing effect on the result.

Parameter

newWeight: int

The new vote weight.

Return value

(int) New weight.

Throws:

  • CondorcetPHP\Condorcet\Throwable\VoteInvalidFormatException

Related

  • Vote::getWeight()

Contents

  1. 1Description
  2. 2Parameter
  3. 2.1newWeight: int
  4. 3Return value
  5. 4Throws:
  6. 5Related