public function addVoterVote(VoterInterface $voter, array $attributes, int $vote)
    {
        $currentLogIndex = \count($this->currentLog) - 1;
        $this->currentLog[$currentLogIndex]['voterDetails'][] = [
            'voter' => $voter,
            'attributes' => $attributes,
            'vote' => $vote,
        ];
    }
public function addVoterVote(VoterInterface $voter, array $attributes, int $vote)
    {
        $currentLogIndex = \count($this->currentLog) - 1;
        $this->currentLog[$currentLogIndex]['voterDetails'][] = [
            'voter' => $voter,
            'attributes' => $attributes,
            'vote' => $vote,
        ];
    }
public function addVoterVote ( VoterInterface $ voter , array $ attributes , int $ vote ) { $ currentLogIndex = \ count ( $ this -> currentLog ) - 1 ; $ this -> currentLog [ $ currentLogIndex ] [ 'voterDetails' ] [ ] = [ 'voter' => $ voter , 'attributes' => $ attributes , 'vote' => $ vote , ] ; }
Adds voter vote and class to the voter details.

@param VoterInterface $voter      voter
@param array          $attributes attributes used for the vote
@param int            $vote       vote of the voter
Adds voter vote and class to the voter details .