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:
Jeff Moser
2010-10-02 21:15:47 -04:00
parent c22683ab33
commit fc6cd5c961
22 changed files with 145 additions and 70 deletions

View File

@ -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;
}
}
}
?>