public function getSummonerByName( string $summoner_name )
	{
		$summoner_name = str_replace(' ', '', $summoner_name);

		$resultPromise = $this->setEndpoint("/lol/summoner/" . self::RESOURCE_SUMMONER_VERSION . "/summoners/by-name/{$summoner_name}")
			->setResource(self::RESOURCE_SUMMONER, "/summoners/by-name/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\SummonerDto($result, $this);
		});
	}
public function getSummonerByName( string $summoner_name )
	{
		$summoner_name = str_replace(' ', '', $summoner_name);

		$resultPromise = $this->setEndpoint("/lol/summoner/" . self::RESOURCE_SUMMONER_VERSION . "/summoners/by-name/{$summoner_name}")
			->setResource(self::RESOURCE_SUMMONER, "/summoners/by-name/%s")
			->makeCall();

		return $this->resolveOrEnqueuePromise($resultPromise, function(array $result) {
			return new Objects\SummonerDto($result, $this);
		});
	}
public function getSummonerByName ( string $ summoner_name ) { $ summoner_name = str_replace ( ' ' , '' , $ summoner_name ) ; $ resultPromise = $ this -> setEndpoint ( "/lol/summoner/" . self :: RESOURCE_SUMMONER_VERSION . "/summoners/by-name/{$summoner_name}" ) -> setResource ( self :: RESOURCE_SUMMONER , "/summoners/by-name/%s" ) -> makeCall ( ) ; return $ this -> resolveOrEnqueuePromise ( $ resultPromise , function ( array $ result ) { return new Objects \ SummonerDto ( $ result , $ this ) ; } ) ; }
Get summoner name for a given summoner name.

@param string $summoner_name

@return Objects\SummonerDto

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

@link https://developer.riotgames.com/api-methods/#summoner-v4/GET_getBySummonerName
Get summoner name for a given summoner name .