mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
33 lines
521 B
PHP
33 lines
521 B
PHP
<?php
|
|
namespace Moserware\Skills\FactorGraphs;
|
|
|
|
class Message
|
|
{
|
|
private $_name;
|
|
private $_value;
|
|
|
|
public function __construct(&$value = null, $name = null)
|
|
{
|
|
$this->_name = $name;
|
|
$this->_value = $value;
|
|
}
|
|
|
|
public function& getValue()
|
|
{
|
|
$value = &$this->_value;
|
|
return $value;
|
|
}
|
|
|
|
public function setValue(&$value)
|
|
{
|
|
$this->_value = &$value;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->_name;
|
|
}
|
|
}
|
|
|
|
?>
|