mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-29 04:13:22 +00:00
It gets a result... unfortunately it's wrong. But hey, that's progress :) Lots of debugging code left in to make up for a less than ideal debugger
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
<?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 = null, &$rating = null)
|
||||
public function __construct(Player &$player = null, Rating &$rating = null)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
@ -15,12 +17,11 @@ class Team extends RatingContainer
|
||||
}
|
||||
}
|
||||
|
||||
public function addPlayer(&$player, &$rating)
|
||||
public function addPlayer(Player &$player, Rating &$rating)
|
||||
{
|
||||
$this->setRating($player, $rating);
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user