mirror of
https://github.com/furyfire/trueskill.git
synced 2025-05-12 06:07:50 +00:00
This commit is contained in:
@ -10,7 +10,7 @@ abstract class FactorGraph
|
||||
|
||||
protected function __construct()
|
||||
{
|
||||
$this->variableFactory = new VariableFactory(fn () => NULL);
|
||||
$this->variableFactory = new VariableFactory(static fn(): null => NULL);
|
||||
}
|
||||
|
||||
public function getVariableFactory(): VariableFactory
|
||||
|
@ -15,12 +15,12 @@ abstract class FactorGraphLayer
|
||||
private array $localFactors = [];
|
||||
|
||||
/**
|
||||
* @var array<int,array<int,object>>
|
||||
* @var array<int,array<int,Variable>>
|
||||
*/
|
||||
private array $outputVariablesGroups = [];
|
||||
|
||||
/**
|
||||
* @var array<int,array<int,object>>
|
||||
* @var array<int,array<int,Variable>>
|
||||
*/
|
||||
private array $inputVariablesGroups = [];
|
||||
|
||||
@ -29,7 +29,7 @@ abstract class FactorGraphLayer
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int,array<int,object>>
|
||||
* @return array<int,array<int,Variable>>
|
||||
*/
|
||||
protected function getInputVariablesGroups(): array
|
||||
{
|
||||
@ -44,7 +44,7 @@ abstract class FactorGraphLayer
|
||||
/**
|
||||
* This reference is still needed
|
||||
*
|
||||
* @return array<int,array<int,object>>
|
||||
* @return array<int,array<int,Variable>>
|
||||
*/
|
||||
public function &getOutputVariablesGroups(): array
|
||||
{
|
||||
@ -60,7 +60,7 @@ abstract class FactorGraphLayer
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<int,array<int,object>> $value
|
||||
* @param array<int,array<int,Variable>> $value
|
||||
*/
|
||||
public function setInputVariablesGroups(array $value): void
|
||||
{
|
||||
|
Reference in New Issue
Block a user