public function getCurrentGameInfo( string $encrypted_summoner_id )
	{
		$resultPromise = $this->setEndpoint("/lol/spectator/" . self::RESOURCE_SPECTATOR_VERSION . "/active-games/by-summoner/{$encrypted_summoner_id}")
			->setResource(self::RESOURCE_SPECTATOR, "/active-games/by-summoner/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\CurrentGameInfo($result, $this);
		});
	}
public function getCurrentGameInfo( string $encrypted_summoner_id )
	{
		$resultPromise = $this->setEndpoint("/lol/spectator/" . self::RESOURCE_SPECTATOR_VERSION . "/active-games/by-summoner/{$encrypted_summoner_id}")
			->setResource(self::RESOURCE_SPECTATOR, "/active-games/by-summoner/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\CurrentGameInfo($result, $this);
		});
	}
public function getCurrentGameInfo ( string $ encrypted_summoner_id ) { $ resultPromise = $ this -> setEndpoint ( "/lol/spectator/" . self :: RESOURCE_SPECTATOR_VERSION . "/active-games/by-summoner/{$encrypted_summoner_id}" ) -> setResource ( self :: RESOURCE_SPECTATOR , "/active-games/by-summoner/%s" ) -> makeCall ( ) ; return $ this -> resolveOrEnqueuePromise ( $ resultPromise , function ( array $ result ) { return new Objects \ CurrentGameInfo ( $ result , $ this ) ; } ) ; }
Get current game information for the given summoner ID.

@param string $encrypted_summoner_id

@return Objects\CurrentGameInfo

@throws SettingsException
@throws RequestException
@throws ServerException
@throws ServerLimitException
@throws GeneralException

@link https://developer.riotgames.com/api-methods/#spectator-v4/GET_getCurrentGameInfoBySummoner
Get current game information for the given summoner ID .