Manage Votes
Verify the registered votes list
Reference
php
$election->getVotesList(); // Will return an array where key is the internal numeric vote_id and value an other array like your input.
$election->getVotesList('Charlie'); // Will return an array with each vote with this tag.
$election->getVotesList('Charlie', false); // Will return an array where each votes without this tag.
$election->getVotesList('Charlie,Julien'); // With this tag OR this tag
$election->getVotesList(['Julien', 'Charlie'], true); // Or do it with array
$election->getVotesList(['Julien', 'Charlie'], false); // Without this tag AND without this tag ...
Count registered votes
Reference
php
$election->countVotes(); // Return a numeric value about the number of registered votes.
$election->countVotes('Julien,Charlie'); // Count vote with this tag OR this tag.
$election->countVotes(['Julien','Charlie'], false); // Count vote without this tag AND without this tag.
Remove vote
Reference
php
use CondorcetPHP\Condorcet\Election;
$election = new Election;
$election->parseCandidates('A;B;C');
$voteObject = $election->addVote('A > B > C'); // Returns a new vote object
$election->removeVote($voteObject); // Cancel the vote
Reference
php
$election->removeVotesByTags('Charlie') ; // Remove vote(s) with tag Charlie
$election->removeVotesByTags('Charlie', false) ; // Remove votes without tag Charlie
$election->removeVotesByTags('Charlie, Julien', false) ; // Remove votes without tag Charlie AND without tag Julien.
$election->removeVotesByTags(['Julien','Charlie']) ; // Remove votes with tag Charlie OR with tag Julien.
Note: You can remove a vote after the results have already been given.