mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-10-31 00:12:29 +01: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
	 Jeff Moser
					Jeff Moser