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

@ -5,21 +5,20 @@ class Message
private $_name;
private $_value;
public function __construct(&$value = null, $name = null)
public function __construct($value = null, $name = null)
{
$this->_name = $name;
$this->_value = $value;
}
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 __toString()