original_string: public function addVoterVote(VoterInterface $voter, array $attributes, int $vote)
      {
          $currentLogIndex = \count($this->currentLog) - 1;
          $this->currentLog[$currentLogIndex]['voterDetails'][] = [
              'voter' => $voter,
              'attributes' => $attributes,
              'vote' => $vote,
          ];
      }
code: public function addVoterVote(VoterInterface $voter, array $attributes, int $vote)
      {
          $currentLogIndex = \count($this->currentLog) - 1;
          $this->currentLog[$currentLogIndex]['voterDetails'][] = [
              'voter' => $voter,
              'attributes' => $attributes,
              'vote' => $vote,
          ];
      }
code_tokens: public function addVoterVote ( VoterInterface $ voter , array $ attributes , int $ vote ) { $ currentLogIndex = \ count ( $ this -> currentLog ) - 1 ; $ this -> currentLog [ $ currentLogIndex ] [ 'voterDetails' ] [ ] = [ 'voter' => $ voter , 'attributes' => $ attributes , 'vote' => $ vote , ] ; }
docstring: 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
docstring_tokens: Adds voter vote and class to the voter details .