mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
18 lines
341 B
PHP
18 lines
341 B
PHP
![]() |
<?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;
|
||
|
}
|
||
|
}
|