mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
29 lines
606 B
PHP
29 lines
606 B
PHP
<?php
|
|
namespace Moserware\Skills\FactorGraphs;
|
|
|
|
class Message
|
|
{
|
|
private $_nameFormat;
|
|
private $_nameFormatArgs;
|
|
private $_value;
|
|
|
|
public function __construct($value = null, $nameFormat = null, $args = null)
|
|
{
|
|
$this->_nameFormat = $nameFormat;
|
|
$this->_nameFormatArgs = $args;
|
|
$this->_value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->_value;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->_nameFormat; //return (_NameFormat == null) ? base.ToString() : String.Format(_NameFormat, _NameFormatArgs);
|
|
}
|
|
}
|
|
|
|
?>
|