mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
Types on ranges attempt.
This commit is contained in:
@ -26,7 +26,7 @@ class Range
|
|||||||
return $this->max;
|
return $this->max;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function create(int $min, int $max): static
|
protected static function create(int $min, int $max): self
|
||||||
{
|
{
|
||||||
return new Range($min, $max);
|
return new Range($min, $max);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ use DNW\Skills\Numerics\Range;
|
|||||||
|
|
||||||
class PlayersRange extends Range
|
class PlayersRange extends Range
|
||||||
{
|
{
|
||||||
protected static function create(int $min, int $max): static
|
protected static function create(int $min, int $max): self
|
||||||
{
|
{
|
||||||
return new PlayersRange($min, $max);
|
return new PlayersRange($min, $max);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ use DNW\Skills\Numerics\Range;
|
|||||||
|
|
||||||
class TeamsRange extends Range
|
class TeamsRange extends Range
|
||||||
{
|
{
|
||||||
protected static function create(int $min, int $max): static
|
protected static function create(int $min, int $max): self
|
||||||
{
|
{
|
||||||
return new TeamsRange($min, $max);
|
return new TeamsRange($min, $max);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user