mirror of
https://github.com/furyfire/trueskill.git
synced 2025-06-27 15:21:31 +00:00
More type stuff and unused code removed.
This commit is contained in:
@ -8,14 +8,14 @@ class VariableFactory
|
||||
{
|
||||
}
|
||||
|
||||
public function createBasicVariable($name)
|
||||
public function createBasicVariable(string $name): Variable
|
||||
{
|
||||
$initializer = $this->_variablePriorInitializer;
|
||||
|
||||
return new Variable($name, $initializer());
|
||||
}
|
||||
|
||||
public function createKeyedVariable($key, $name)
|
||||
public function createKeyedVariable(mixed $key, string $name): KeyedVariable
|
||||
{
|
||||
$initializer = $this->_variablePriorInitializer;
|
||||
|
||||
|
Reference in New Issue
Block a user