/**
  * Updates a Ranking into
  * the provided tournament.
  *
  * @param int $adminID
  * @param int $rankingID
  * @param int $score
  * @param int $tournamentID
  * @param int $playerID
  *
  * @return Ranking
  */
 public function updateRanking($adminID, $rankingID, $score = 0, $tournamentID = null, $playerID = null)
 {
     $admin = $this->administratorsRepository->get($adminID);
     $player = null;
     $tournament = null;
     if ($playerID) {
         $player = $this->playersRepo->getPlayer($playerID);
     }
     if ($tournamentID) {
         $tournament = $this->tournamentsRepo->getTournament($tournamentID);
     }
     return $this->repo->updateRanking($admin, $rankingID, $score, $tournament, $player);
 }
 /**
  * Gets all the players from a given
  * Tournament.
  *
  * @param int $tournamentID
  *
  * @throws Illuminate\Database\Eloquent\ModelNotFoundException
  *
  * @return boolean
  */
 public function getPlayers($tournamentID)
 {
     $tournament = $this->tournamentsRepo->getTournament($tournamentID);
     return $this->playersRepo->getAllPlayers($tournament);
 }
 /**
  * Removes a tournament.
  *
  * @param string $name
  *
  * @return boolean
  */
 public function removeTournament($name)
 {
     return $this->repo->removeTournament(\Admin::getLogged(), $name);
 }