mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-31 13:14:02 +00:00
Start of factor graph port. Things don't work yet, but a lot of syntax updates towards PHP
This commit is contained in:
28
PHPSkills/FactorGraphs/Message.php
Normal file
28
PHPSkills/FactorGraphs/Message.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user