mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
General cleanup and removal of all unnecessary references
This commit is contained in:
@ -7,22 +7,21 @@ class Variable
|
||||
private $_prior;
|
||||
private $_value;
|
||||
|
||||
public function __construct($name, &$prior)
|
||||
public function __construct($name, $prior)
|
||||
{
|
||||
$this->_name = "Variable[" . $name . "]";
|
||||
$this->_prior = $prior;
|
||||
$this->resetToPrior();
|
||||
}
|
||||
|
||||
public function &getValue()
|
||||
public function getValue()
|
||||
{
|
||||
$value = &$this->_value;
|
||||
return $value;
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
public function setValue(&$value)
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = &$value;
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
public function resetToPrior()
|
||||
|
Reference in New Issue
Block a user