mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-15 02:24:28 +00:00
19 lines
396 B
PHP
19 lines
396 B
PHP
<?php
|
|
|
|
namespace DNW\Skills\FactorGraphs;
|
|
|
|
class ScheduleStep extends Schedule
|
|
{
|
|
public function __construct($name, private readonly Factor $_factor, private $_index)
|
|
{
|
|
parent::__construct($name);
|
|
}
|
|
|
|
public function visit($depth = -1, $maxDepth = 0)
|
|
{
|
|
$currentFactor = $this->_factor;
|
|
|
|
return $currentFactor->updateMessageIndex($this->_index);
|
|
}
|
|
}
|