More return types. Basic example

This commit is contained in:
2023-08-02 09:04:56 +00:00
parent f0aa9413e1
commit 32b8a9d83e
13 changed files with 71 additions and 33 deletions

View File

@ -11,7 +11,7 @@ class RatingContainer
$this->playerToRating = new HashMap();
}
public function getRating(Player $player): mixed
public function getRating(Player $player): Rating
{
return $this->playerToRating->getValue($player);
}