mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-29 04:13:22 +00:00
Fixed some debugging messages on factors
This commit is contained in:
@ -3,14 +3,12 @@ namespace Moserware\Skills\FactorGraphs;
|
||||
|
||||
class Message
|
||||
{
|
||||
private $_nameFormat;
|
||||
private $_nameFormatArgs;
|
||||
private $_name;
|
||||
private $_value;
|
||||
|
||||
public function __construct($value = null, $nameFormat = null, $args = null)
|
||||
public function __construct($value = null, $name = null)
|
||||
{
|
||||
$this->_nameFormat = $nameFormat;
|
||||
$this->_nameFormatArgs = $args;
|
||||
$this->_name = $name;
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
@ -21,7 +19,7 @@ class Message
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->_nameFormat; //return (_NameFormat == null) ? base.ToString() : String.Format(_NameFormat, _NameFormatArgs);
|
||||
return $this->_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user