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:
@ -36,12 +36,12 @@ abstract class Factor
|
||||
return count($this->_messages);
|
||||
}
|
||||
|
||||
protected function getVariables()
|
||||
protected function &getVariables()
|
||||
{
|
||||
return $this->_variables;
|
||||
}
|
||||
|
||||
protected function getMessages()
|
||||
protected function &getMessages()
|
||||
{
|
||||
return $this->_messages;
|
||||
}
|
||||
@ -77,11 +77,11 @@ abstract class Factor
|
||||
return $this->sendMessageVariable($message, $variable);
|
||||
}
|
||||
|
||||
protected abstract function sendMessageVariable(Message $message, Variable $variable);
|
||||
protected abstract function sendMessageVariable(Message &$message, Variable &$variable);
|
||||
|
||||
public abstract function createVariableToMessageBinding(Variable $variable);
|
||||
public abstract function createVariableToMessageBinding(Variable &$variable);
|
||||
|
||||
protected function createVariableToMessageBindingWithMessage(Variable $variable, Variable $message)
|
||||
protected function createVariableToMessageBindingWithMessage(Variable &$variable, Variable &$message)
|
||||
{
|
||||
$index = count($this->_messages);
|
||||
$this->_messages[] = $message;
|
||||
|
Reference in New Issue
Block a user