More type work

This commit is contained in:
2023-08-02 09:36:44 +00:00
parent 16ad8175d9
commit a60187a3fd
14 changed files with 38 additions and 31 deletions

View File

@ -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;
}