mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
No more use of $_ to mark private members.
This commit is contained in:
@ -4,20 +4,20 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class VariableFactory
|
||||
{
|
||||
public function __construct(private $_variablePriorInitializer)
|
||||
public function __construct(private $variablePriorInitializer)
|
||||
{
|
||||
}
|
||||
|
||||
public function createBasicVariable(string $name): Variable
|
||||
{
|
||||
$initializer = $this->_variablePriorInitializer;
|
||||
$initializer = $this->variablePriorInitializer;
|
||||
|
||||
return new Variable($name, $initializer());
|
||||
}
|
||||
|
||||
public function createKeyedVariable(mixed $key, string $name): KeyedVariable
|
||||
{
|
||||
$initializer = $this->_variablePriorInitializer;
|
||||
$initializer = $this->variablePriorInitializer;
|
||||
|
||||
return new KeyedVariable($key, $name, $initializer());
|
||||
}
|
||||
|
Reference in New Issue
Block a user