mirror of
https://github.com/furyfire/trueskill.git
synced 2025-06-27 23:21:32 +00:00
More type work
This commit is contained in:
@ -21,11 +21,17 @@ class RatingContainer
|
||||
return $this->playerToRating->setValue($player, $rating);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Player[]
|
||||
*/
|
||||
public function getAllPlayers(): array
|
||||
{
|
||||
return $this->playerToRating->getAllKeys();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Rating[]
|
||||
*/
|
||||
public function getAllRatings(): array
|
||||
{
|
||||
return $this->playerToRating->getAllValues();
|
||||
|
Reference in New Issue
Block a user