public function set(Stats $stats) { $result = $this->gameRepository->findLeastGamesByPlayer(); $stat = new Stat('Player with least games', $result['numgames'], $this->playerRepository->find($result['player'])); $stats->addStat($stat); }