| 1 | <?php |
||
| 9 | abstract class EloModel extends AvatarModel |
||
| 10 | { |
||
| 11 | protected $elo; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Increase or decrease the ELO of the team |
||
| 15 | * |
||
| 16 | * @param int $adjust The value to be added to the current ELO (negative to substract) |
||
| 17 | */ |
||
| 18 | public function changeElo($adjust) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Change the ELO of the team |
||
| 26 | * |
||
| 27 | * @param int $elo The new team ELO |
||
| 28 | */ |
||
| 29 | public function setElo($elo) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the current elo of the model |
||
| 36 | * |
||
| 37 | * @return int The elo of the model |
||
| 38 | */ |
||
| 39 | public function getElo() |
||
| 43 | |||
| 44 | } |
||
| 45 |