public function getStaticSummonerSpells( bool $data_by_key = false, string $locale = 'en_US', string $version = null ): StaticData\StaticSummonerSpellListDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			if ($data_by_key)
				$result = DataDragonAPI::getStaticSummonerSpellsWithKeys($locale, $version);
			else
				$result = DataDragonAPI::getStaticSummonerSpells($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\StaticSummonerSpellListDto($result, $this);
		}
	}
public function getStaticSummonerSpells( bool $data_by_key = false, string $locale = 'en_US', string $version = null ): StaticData\StaticSummonerSpellListDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			if ($data_by_key)
				$result = DataDragonAPI::getStaticSummonerSpellsWithKeys($locale, $version);
			else
				$result = DataDragonAPI::getStaticSummonerSpells($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\StaticSummonerSpellListDto($result, $this);
		}
	}
public function getStaticSummonerSpells ( bool $ data_by_key = false , string $ locale = 'en_US' , string $ version = null ) : StaticData \ StaticSummonerSpellListDto { $ result = false ; try { // Fetch StaticData from JSON files if ( $ data_by_key ) $ result = DataDragonAPI :: getStaticSummonerSpellsWithKeys ( $ locale , $ version ) ; else $ result = DataDragonAPI :: getStaticSummonerSpells ( $ 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 \ StaticSummonerSpellListDto ( $ result , $ this ) ; } }
Retrieves summoner spell list.

@param bool   $data_by_key
@param string $locale
@param string $version

@return StaticData\StaticSummonerSpellListDto
@throws RequestException
@throws ServerException
@throws SettingsException
Retrieves summoner spell list .