public function getStaticSummonerSpell( int $summoner_spell_id, string $locale = 'en_US', string $version = null ): StaticData\StaticSummonerSpellDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticSummonerSpellById($summoner_spell_id, $locale, $version);
			if (!$result) throw new ServerException("StaticData failed to be loaded.");

			$this->result_data = $result;
		}
		catch (DataDragonExceptions\SettingsException $ex)
		{
			throw new SettingsException("DataDragon API was not initialized properly! StaticData endpoints cannot be used.");
		}
		catch (DataDragonExceptions\ArgumentException $ex)
		{
			throw new RequestException($ex->getMessage(), $ex->getCode());
		}
		finally
		{
			// Parse array and create instances
			return new StaticData\StaticSummonerSpellDto($result, $this);
		}
	}
public function getStaticSummonerSpell( int $summoner_spell_id, string $locale = 'en_US', string $version = null ): StaticData\StaticSummonerSpellDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticSummonerSpellById($summoner_spell_id, $locale, $version);
			if (!$result) throw new ServerException("StaticData failed to be loaded.");

			$this->result_data = $result;
		}
		catch (DataDragonExceptions\SettingsException $ex)
		{
			throw new SettingsException("DataDragon API was not initialized properly! StaticData endpoints cannot be used.");
		}
		catch (DataDragonExceptions\ArgumentException $ex)
		{
			throw new RequestException($ex->getMessage(), $ex->getCode());
		}
		finally
		{
			// Parse array and create instances
			return new StaticData\StaticSummonerSpellDto($result, $this);
		}
	}
public function getStaticSummonerSpell ( int $ summoner_spell_id , string $ locale = 'en_US' , string $ version = null ) : StaticData \ StaticSummonerSpellDto { $ result = false ; try { // Fetch StaticData from JSON files $ result = DataDragonAPI :: getStaticSummonerSpellById ( $ summoner_spell_id , $ locale , $ version ) ; if ( ! $ result ) throw new ServerException ( "StaticData failed to be loaded." ) ; $ this -> result_data = $ result ; } catch ( DataDragonExceptions \ SettingsException $ ex ) { throw new SettingsException ( "DataDragon API was not initialized properly! StaticData endpoints cannot be used." ) ; } catch ( DataDragonExceptions \ ArgumentException $ ex ) { throw new RequestException ( $ ex -> getMessage ( ) , $ ex -> getCode ( ) ) ; } finally { // Parse array and create instances return new StaticData \ StaticSummonerSpellDto ( $ result , $ this ) ; } }
Retrieves summoner spell by its unique numeric key.

@param int    $summoner_spell_id
@param string $locale
@param string $version

@return StaticData\StaticSummonerSpellDto
@throws RequestException
@throws ServerException
@throws SettingsException
Retrieves summoner spell by its unique numeric key .