mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
27 lines
488 B
PHP
27 lines
488 B
PHP
<?php
|
|
namespace Moserware\Skills;
|
|
|
|
require_once(dirname(__FILE__) . '/RatingContainer.php');
|
|
|
|
class Team extends RatingContainer
|
|
{
|
|
public function __construct(&$player = null, &$rating = null)
|
|
{
|
|
parent::__construct();
|
|
|
|
if(!\is_null($player))
|
|
{
|
|
$this->addPlayer($player, $rating);
|
|
}
|
|
}
|
|
|
|
public function addPlayer(&$player, &$rating)
|
|
{
|
|
$this->setRating($player, $rating);
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|