mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
Cleanup in src/, adding namespaces, removing php closing tag and general code cleanup
This commit is contained in:
18
src/FactorGraphs/KeyedVariable.php
Normal file
18
src/FactorGraphs/KeyedVariable.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php namespace Moserware\Skills\FactorGraphs;
|
||||
|
||||
class KeyedVariable extends Variable
|
||||
{
|
||||
private $_key;
|
||||
|
||||
public function __construct(&$key, $name, &$prior)
|
||||
{
|
||||
parent::__construct($name, $prior);
|
||||
$this->_key = &$key;
|
||||
}
|
||||
|
||||
public function &getKey()
|
||||
{
|
||||
$key = &$this->_key;
|
||||
return $key;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user