public function start(Player $player, $params)
    {
        $this->currentVote = new Vote($player, $this->getCode(), $params);
        return $this->currentVote;
    }
public function start(Player $player, $params)
    {
        $this->currentVote = new Vote($player, $this->getCode(), $params);
        return $this->currentVote;
    }
public function start ( Player $ player , $ params ) { $ this -> currentVote = new Vote ( $ player , $ this -> getCode ( ) , $ params ) ; return $ this -> currentVote ; }
Start a new vote.

@param Player $player

@return Vote|null
Start a new vote .