Files
trueskill/src/Team.php

20 lines
428 B
PHP
Raw Normal View History

2022-07-05 15:33:34 +02:00
<?php namespace DNW\Skills;
class Team extends RatingContainer
{
public function __construct(Player $player = null, Rating $rating = null)
{
parent::__construct();
2022-07-05 15:33:34 +02:00
if(!is_null($player))
{
$this->addPlayer($player, $rating);
}
}
public function addPlayer(Player $player, Rating $rating)
{
$this->setRating($player, $rating);
return $this;
2022-07-05 15:33:34 +02:00
}
}