trueskill/PHPSkills/FactorGraphs/Message.php

35 lines
573 B
PHP
Raw Normal View History

<?php
namespace Moserware\Skills\FactorGraphs;
class Message
{
private $_name;
private $_value;
2010-09-30 12:25:31 +00:00
public function __construct(&$value = null, $name = null)
{
$this->_name = $name;
$this->_value = $value;
}
public function& getValue()
{
2010-09-30 12:25:31 +00:00
$value = &$this->_value;
return $value;
}
public function setValue(&$value)
{
// DEBUG
$selfName = (string)$this;
$this->_value = &$value;
}
public function __toString()
{
return $this->_name;
}
}
?>