original_string: public function createVote(RatingInterface $rating, UserInterface $voter)
      {
          $class = $this->getClass();
          $vote = new $class;
          $vote->setRating($rating);
          $vote->setVoter($voter);
  
          $this->dispatcher->dispatch(DCSRatingEvents::VOTE_CREATE, new Event\VoteEvent($vote));
  
          return $vote;
      }
code: public function createVote(RatingInterface $rating, UserInterface $voter)
      {
          $class = $this->getClass();
          $vote = new $class;
          $vote->setRating($rating);
          $vote->setVoter($voter);
  
          $this->dispatcher->dispatch(DCSRatingEvents::VOTE_CREATE, new Event\VoteEvent($vote));
  
          return $vote;
      }
code_tokens: public function createVote ( RatingInterface $ rating , UserInterface $ voter ) { $ class = $ this -> getClass ( ) ; $ vote = new $ class ; $ vote -> setRating ( $ rating ) ; $ vote -> setVoter ( $ voter ) ; $ this -> dispatcher -> dispatch ( DCSRatingEvents :: VOTE_CREATE , new Event \ VoteEvent ( $ vote ) ) ; return $ vote ; }
docstring: Creates an empty vote instance
  
  @param RatingInterface $rating
  @param UserInterface $voter
  @return \DCS\RatingBundle\Model\VoteInterface
docstring_tokens: Creates an empty vote instance