public function getTournamentLobbyEvents( string $tournament_code )
	{
		if ($this->getSetting(self::SET_INTERIM, false))
			return $this->getTournamentLobbyEvents_STUB($tournament_code);

		$resultPromise = $this->setEndpoint("/lol/tournament/" . self::RESOURCE_TOURNAMENT_VERSION . "/lobby-events/by-code/{$tournament_code}")
			->setResource(self::RESOURCE_TOURNAMENT, "/lobby-events/by-code/%s")
			->useKey(self::SET_TOURNAMENT_KEY)
			->makeCall(Region::AMERICAS);

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\LobbyEventDtoWrapper($result, $this);
		});
	}
public function getTournamentLobbyEvents( string $tournament_code )
	{
		if ($this->getSetting(self::SET_INTERIM, false))
			return $this->getTournamentLobbyEvents_STUB($tournament_code);

		$resultPromise = $this->setEndpoint("/lol/tournament/" . self::RESOURCE_TOURNAMENT_VERSION . "/lobby-events/by-code/{$tournament_code}")
			->setResource(self::RESOURCE_TOURNAMENT, "/lobby-events/by-code/%s")
			->useKey(self::SET_TOURNAMENT_KEY)
			->makeCall(Region::AMERICAS);

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\LobbyEventDtoWrapper($result, $this);
		});
	}
public function getTournamentLobbyEvents ( string $ tournament_code ) { if ( $ this -> getSetting ( self :: SET_INTERIM , false ) ) return $ this -> getTournamentLobbyEvents_STUB ( $ tournament_code ) ; $ resultPromise = $ this -> setEndpoint ( "/lol/tournament/" . self :: RESOURCE_TOURNAMENT_VERSION . "/lobby-events/by-code/{$tournament_code}" ) -> setResource ( self :: RESOURCE_TOURNAMENT , "/lobby-events/by-code/%s" ) -> useKey ( self :: SET_TOURNAMENT_KEY ) -> makeCall ( Region :: AMERICAS ) ; return $ this -> resolveOrEnqueuePromise ( $ resultPromise , function ( array $ result ) { return new Objects \ LobbyEventDtoWrapper ( $ result , $ this ) ; } ) ; }
Gets a list of lobby events by tournament code.

@param string $tournament_code

@return Objects\LobbyEventDtoWrapper

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

@link https://developer.riotgames.com/api-methods/#tournament-v4/GET_getLobbyEventsByCode
Gets a list of lobby events by tournament code .