parseCandidates('A;B;C;D;E;F;G'); $election->parseVotes(' E > B > C > A > G * 2500 F > B > G > H > A * 2500 H > B > G > E > A * 2500 A = B = C > D > E = F > G * 2500 G = E = C > F > A * 2500 C > D = G > A > B * 2500 '); $election->getWinner(); $vote = $election->addVote('A>B>C'); $election->removeVote($vote); $vote->setRanking('C>B>A'); $election->getWinner(); } }