mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-31 13:14:02 +00:00
More debugging and realizing how PHP does references
This commit is contained in:
@ -5,14 +5,14 @@ class FactorGraph
|
||||
{
|
||||
private $_variableFactory;
|
||||
|
||||
public function getVariableFactory()
|
||||
public function &getVariableFactory()
|
||||
{
|
||||
return $this->_variableFactory;
|
||||
}
|
||||
|
||||
public function setVariableFactory($factory)
|
||||
public function setVariableFactory(&$factory)
|
||||
{
|
||||
$this->_variableFactory = $factory;
|
||||
$this->_variableFactory = &$factory;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user