More debugging and realizing how PHP does references

This commit is contained in:
Jeff Moser
2010-09-25 15:46:23 -04:00
parent e8d444e7da
commit 086d94865f
21 changed files with 77 additions and 72 deletions

View File

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