Skip to content

public Tools\Converters\DavidHillFormat::setDataToAnElection ​

Read it at the source

Description ​

php
public Tools\Converters\DavidHillFormat->setDataToAnElection ( [?CondorcetPHP\Condorcet\Election $election = null] ): CondorcetPHP\Condorcet\Election

Add the data to an election object.

Parameter ​

election: ?CondorcetPHP\Condorcet\Election ​

Add an existing election, useful if you want to set up some parameters or add extra candidates. If null an election object will be created for you.

Return value ​

(CondorcetPHP\Condorcet\Election) The election object


Released under the MIT License.