/** * Creates a stats object for the given user and this game * * @param string $steamId The custom URL or the 64bit Steam ID of the user * @return GameStats The stats of this game for the given user */ public function getUserStats($steamId) { if (!$this->hasStats()) { return null; } return GameStats::create($steamId, $this->appId); }
/** * Returns the stats for the given game for the owner of this SteamID * * @param int $appId The application ID of the game stats should be fetched * for * @return GameStats The statistics for the game with the given name * @throws SteamCondenserException if the user does not own this game or it * does not have any stats */ public function getGameStats($appId) { return GameStats::create($this->getId(), $appId); }