Another pass at fixing up references

This commit is contained in:
Jeff Moser
2010-09-30 08:25:31 -04:00
parent 5368f7528e
commit 803a0816a8
28 changed files with 168 additions and 103 deletions

View File

@ -5,7 +5,7 @@ require_once(dirname(__FILE__) . '/RatingContainer.php');
class Team extends RatingContainer
{
public function __construct($player = null, $rating = null)
public function __construct(&$player = null, &$rating = null)
{
parent::__construct();
@ -15,7 +15,7 @@ class Team extends RatingContainer
}
}
public function addPlayer($player, $rating)
public function addPlayer(&$player, &$rating)
{
$this->setRating($player, $rating);
return $this;