mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
Naming tweak
This commit is contained in:
27
Skills/Team.php
Normal file
27
Skills/Team.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Moserware\Skills;
|
||||
|
||||
require_once(dirname(__FILE__) . '/Player.php');
|
||||
require_once(dirname(__FILE__) . '/Rating.php');
|
||||
require_once(dirname(__FILE__) . '/RatingContainer.php');
|
||||
|
||||
class Team extends RatingContainer
|
||||
{
|
||||
public function __construct(Player &$player = null, Rating $rating = null)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if(!\is_null($player))
|
||||
{
|
||||
$this->addPlayer($player, $rating);
|
||||
}
|
||||
}
|
||||
|
||||
public function addPlayer(Player &$player, Rating $rating)
|
||||
{
|
||||
$this->setRating($player, $rating);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user