mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 04:14:28 +00:00
Moved UnitTests to tests/ and Skills to src/
This commit is contained in:
32
src/FactorGraphs/Message.php
Normal file
32
src/FactorGraphs/Message.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user