mirror of
https://github.com/furyfire/trueskill.git
synced 2025-06-28 15:30:56 +00:00
More type work
This commit is contained in:
@ -4,12 +4,12 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class ScheduleStep extends Schedule
|
||||
{
|
||||
public function __construct($name, private readonly Factor $factor, private $index)
|
||||
public function __construct(string $name, private readonly Factor $factor, private $index)
|
||||
{
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
public function visit(int $depth = -1, int $maxDepth = 0)
|
||||
public function visit(int $depth = -1, int $maxDepth = 0): float
|
||||
{
|
||||
$currentFactor = $this->factor;
|
||||
|
||||
|
Reference in New Issue
Block a user