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