mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-11 17:14:13 +00:00
More type work
This commit is contained in:
@ -19,9 +19,12 @@ use DNW\Skills\TrueSkill\Layers\TeamPerformancesToTeamPerformanceDifferencesLaye
|
||||
|
||||
class TrueSkillFactorGraph extends FactorGraph
|
||||
{
|
||||
private $layers;
|
||||
/**
|
||||
* @var FactorGraphLayer[] $layers
|
||||
*/
|
||||
private array $layers;
|
||||
|
||||
private $priorLayer;
|
||||
private PlayerPriorValuesToSkillsLayer $priorLayer;
|
||||
|
||||
public function __construct(private readonly GameInfo $gameInfo, array $teams, array $teamRanks)
|
||||
{
|
||||
@ -43,7 +46,7 @@ class TrueSkillFactorGraph extends FactorGraph
|
||||
];
|
||||
}
|
||||
|
||||
public function getGameInfo()
|
||||
public function getGameInfo(): GameInfo
|
||||
{
|
||||
return $this->gameInfo;
|
||||
}
|
||||
|
Reference in New Issue
Block a user