mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 04:14:28 +00:00
Cleanup in src/, adding namespaces, removing php closing tag and general code cleanup
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
<?php
|
||||
namespace Moserware\Skills\FactorGraphs;
|
||||
<?php namespace Moserware\Skills\FactorGraphs;
|
||||
|
||||
class Message
|
||||
{
|
||||
private $_name;
|
||||
private $_name;
|
||||
private $_value;
|
||||
|
||||
public function __construct(&$value = null, $name = null)
|
||||
{
|
||||
$this->_name = $name;
|
||||
$this->_name = $name;
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
@ -19,14 +18,12 @@ class Message
|
||||
}
|
||||
|
||||
public function setValue(&$value)
|
||||
{
|
||||
{
|
||||
$this->_value = &$value;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->_name;
|
||||
return (string)$this->_name;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
Reference in New Issue
Block a user