public function getLeaguePositionsForSummoner( string $encrypted_summoner_id )
	{
		$resultPromise = $this->setEndpoint("/lol/league/" . self::RESOURCE_LEAGUE_VERSION . "/positions/by-summoner/{$encrypted_summoner_id}")
			->setResource(self::RESOURCE_LEAGUE, "/positions/by-summoner/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			$r = [];
			foreach ($result as $leagueListDtoData)
				$r[] = new Objects\LeaguePositionDto($leagueListDtoData, $this);

			return $r;
		});
	}
public function getLeaguePositionsForSummoner( string $encrypted_summoner_id )
	{
		$resultPromise = $this->setEndpoint("/lol/league/" . self::RESOURCE_LEAGUE_VERSION . "/positions/by-summoner/{$encrypted_summoner_id}")
			->setResource(self::RESOURCE_LEAGUE, "/positions/by-summoner/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			$r = [];
			foreach ($result as $leagueListDtoData)
				$r[] = new Objects\LeaguePositionDto($leagueListDtoData, $this);

			return $r;
		});
	}
public function getLeaguePositionsForSummoner ( string $ encrypted_summoner_id ) { $ resultPromise = $ this -> setEndpoint ( "/lol/league/" . self :: RESOURCE_LEAGUE_VERSION . "/positions/by-summoner/{$encrypted_summoner_id}" ) -> setResource ( self :: RESOURCE_LEAGUE , "/positions/by-summoner/%s" ) -> makeCall ( ) ; return $ this -> resolveOrEnqueuePromise ( $ resultPromise , function ( array $ result ) { $ r = [ ] ; foreach ( $ result as $ leagueListDtoData ) $ r [ ] = new Objects \ LeaguePositionDto ( $ leagueListDtoData , $ this ) ; return $ r ; } ) ; }
Get leagues mapped by summoner ID for a given list of summoner IDs.

@param string $encrypted_summoner_id

@return Objects\LeaguePositionDto[]

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

@link https://developer.riotgames.com/api-methods/#league-v4/GET_getAllLeaguePositionsForSummoner
Get leagues mapped by summoner ID for a given list of summoner IDs .