General cleanup and removal of all unnecessary references

This commit is contained in:
Alexander Liljengård
2016-05-24 16:31:21 +02:00
parent 519ad85fad
commit a65f2aa9f3
43 changed files with 366 additions and 386 deletions

View File

@ -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()