public Vote::getRankingAsString

November 22, 2025 ยท View on GitHub

Read it at the source

Description

public Vote->getRankingAsString ( [?CondorcetPHP\Condorcet\Election $context = null , bool $displayWeight = true] ): string

Get the current ranking as a string format. Optionally with an election context.

Parameters

context: ?CondorcetPHP\Condorcet\Election

An election already linked to the Vote.

displayWeight: bool

Include or not the weight symbol and value.

Return value

(string) String like 'A>D=C>B'