trueskill/PHPSkills/Team.php

27 lines
488 B
PHP
Raw Normal View History

<?php
namespace Moserware\Skills;
require_once(dirname(__FILE__) . '/RatingContainer.php');
class Team extends RatingContainer
{
2010-09-30 12:25:31 +00:00
public function __construct(&$player = null, &$rating = null)
{
parent::__construct();
if(!\is_null($player))
{
$this->addPlayer($player, $rating);
}
}
2010-09-30 12:25:31 +00:00
public function addPlayer(&$player, &$rating)
{
$this->setRating($player, $rating);
return $this;
}
}
?>