public function getStaticChampion( int $champion_id, bool $extended = false, string $locale = 'en_US', string $version = null ): StaticData\StaticChampionDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticChampionByKey($champion_id, $locale, $version);
			if ($extended && $result)
				$result = @DataDragonAPI::getStaticChampionDetails($result['id'], $locale, $version)['data'][$result['id']];
			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\StaticChampionDto($result, $this);
		}
	}
public function getStaticChampion( int $champion_id, bool $extended = false, string $locale = 'en_US', string $version = null ): StaticData\StaticChampionDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticChampionByKey($champion_id, $locale, $version);
			if ($extended && $result)
				$result = @DataDragonAPI::getStaticChampionDetails($result['id'], $locale, $version)['data'][$result['id']];
			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\StaticChampionDto($result, $this);
		}
	}
public function getStaticChampion ( int $ champion_id , bool $ extended = false , string $ locale = 'en_US' , string $ version = null ) : StaticData \ StaticChampionDto { $ result = false ; try { // Fetch StaticData from JSON files $ result = DataDragonAPI :: getStaticChampionByKey ( $ champion_id , $ locale , $ version ) ; if ( $ extended && $ result ) $ result = @ DataDragonAPI :: getStaticChampionDetails ( $ result [ 'id' ] , $ locale , $ version ) [ 'data' ] [ $ result [ 'id' ] ] ; 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 \ StaticChampionDto ( $ result , $ this ) ; } }
Retrieves a champion by its numeric key.

@param int    $champion_id
@param bool   $extended
@param string $locale
@param string $version

@return StaticData\StaticChampionDto
@throws RequestException
@throws SettingsException
@throws ServerException
Retrieves a champion by its numeric key .