Exemple #1
0
 /**
  * @param int $gameId
  *
  * @return Domain\Game
  *
  * @throws Domain\DominoException
  */
 private function loadGame($gameId)
 {
     $game = $this->gameRepository->findById($gameId);
     if ($game === null) {
         throw new DominoException('could not find game with id ' . $gameId);
     }
     return $game;
 }