@@ 633-642 (lines=10) @@ | ||
630 | * |
|
631 | * @return null|int |
|
632 | */ |
|
633 | public function getPlayerEloBefore(Player $player) |
|
634 | { |
|
635 | $this->getPlayerEloChangelog(); |
|
636 | ||
637 | if (isset($this->player_elo_changelog[$player->getId()])) { |
|
638 | return $this->player_elo_changelog[$player->getId()]['before']; |
|
639 | } |
|
640 | ||
641 | return null; |
|
642 | } |
|
643 | ||
644 | /** |
|
645 | * Get the Elo for the player after this match occurred |
|
@@ 651-660 (lines=10) @@ | ||
648 | * |
|
649 | * @return null|int |
|
650 | */ |
|
651 | public function getPlayerEloAfter(Player $player) |
|
652 | { |
|
653 | $this->getPlayerEloChangelog(); |
|
654 | ||
655 | if (isset($this->player_elo_changelog[$player->getId()])) { |
|
656 | return $this->player_elo_changelog[$player->getId()]['after']; |
|
657 | } |
|
658 | ||
659 | return null; |
|
660 | } |
|
661 | ||
662 | /** |
|
663 | * Set the Elo difference applied to players |