Start of factor graph port. Things don't work yet, but a lot of syntax updates towards PHP

This commit is contained in:
Jeff Moser
2010-09-18 11:11:44 -04:00
parent 4a76cc34cc
commit e434696b44
25 changed files with 1637 additions and 20 deletions

View 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);
}
}
?>