public function castYes($login)
    {
        if ($this->currentVote) {
            $this->currentVote->castYes($login);

            $player = $this->playerStorage->getPlayerInfo($login);
            $this->dispatcher->dispatch("votemanager.voteyes", [$player, $this->currentVote]);
        }
    }
public function castYes($login)
    {
        if ($this->currentVote) {
            $this->currentVote->castYes($login);

            $player = $this->playerStorage->getPlayerInfo($login);
            $this->dispatcher->dispatch("votemanager.voteyes", [$player, $this->currentVote]);
        }
    }
public function castYes ( $ login ) { if ( $ this -> currentVote ) { $ this -> currentVote -> castYes ( $ login ) ; $ player = $ this -> playerStorage -> getPlayerInfo ( $ login ) ; $ this -> dispatcher -> dispatch ( "votemanager.voteyes" , [ $ player , $ this -> currentVote ] ) ; } }
User votes yes

@param string $login
User votes yes