mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 04:14:28 +00:00
No more use of $_ to mark private members.
This commit is contained in:
@ -10,9 +10,9 @@ use Exception;
|
||||
abstract class SkillCalculator
|
||||
{
|
||||
protected function __construct(
|
||||
private $_supportedOptions,
|
||||
private readonly TeamsRange $_totalTeamsAllowed,
|
||||
private readonly PlayersRange $_playersPerTeamAllowed
|
||||
private $supportedOptions,
|
||||
private readonly TeamsRange $totalTeamsAllowed,
|
||||
private readonly PlayersRange $playersPerTeamAllowed
|
||||
) {
|
||||
}
|
||||
|
||||
@ -41,12 +41,12 @@ abstract class SkillCalculator
|
||||
|
||||
public function isSupported($option): bool
|
||||
{
|
||||
return ($this->_supportedOptions & $option) == $option;
|
||||
return ($this->supportedOptions & $option) == $option;
|
||||
}
|
||||
|
||||
protected function validateTeamCountAndPlayersCountPerTeam(array $teamsOfPlayerToRatings)
|
||||
{
|
||||
self::validateTeamCountAndPlayersCountPerTeamWithRanges($teamsOfPlayerToRatings, $this->_totalTeamsAllowed, $this->_playersPerTeamAllowed);
|
||||
self::validateTeamCountAndPlayersCountPerTeamWithRanges($teamsOfPlayerToRatings, $this->totalTeamsAllowed, $this->playersPerTeamAllowed);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user