mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 20:34:28 +00:00
More types
This commit is contained in:
@ -6,15 +6,14 @@ class Message implements \Stringable
|
||||
{
|
||||
public function __construct(private ?object $value = null, private ?string $name = null)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
public function getValue(): ?object
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue($value)
|
||||
public function setValue(?object $value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class ScheduleLoop extends Schedule
|
||||
{
|
||||
public function __construct($name, private readonly Schedule $scheduleToLoop, private $maxDelta)
|
||||
public function __construct(string $name, private readonly Schedule $scheduleToLoop, private float $maxDelta)
|
||||
{
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class ScheduleStep extends Schedule
|
||||
{
|
||||
public function __construct(string $name, private readonly Factor $factor, private $index)
|
||||
public function __construct(string $name, private readonly Factor $factor, private int $index)
|
||||
{
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user