public function createPlayer(PlayerInfo $playerInfo, PlayerDetailedInfo $playerDetailedInfo)
    {
        $class = $this->class;
        $player = new $class();

        $player->merge($playerInfo);
        $player->merge($playerDetailedInfo);

        return $player;
    }
public function createPlayer(PlayerInfo $playerInfo, PlayerDetailedInfo $playerDetailedInfo)
    {
        $class = $this->class;
        $player = new $class();

        $player->merge($playerInfo);
        $player->merge($playerDetailedInfo);

        return $player;
    }
public function createPlayer ( PlayerInfo $ playerInfo , PlayerDetailedInfo $ playerDetailedInfo ) { $ class = $ this -> class ; $ player = new $ class ( ) ; $ player -> merge ( $ playerInfo ) ; $ player -> merge ( $ playerDetailedInfo ) ; return $ player ; }
Create a player obhect.

@param PlayerInfo $playerInfo
@param PlayerDetailedInfo $playerDetailedInfo

@return Player
Create a player obhect .