public function getStaticVersions(): array
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticVersions();
			if (!$result) throw new ServerException("StaticData failed to be loaded.");

			$this->result_data = $result;
		}
		catch (DataDragonExceptions\ArgumentException $ex)
		{
			throw new RequestException($ex->getMessage(), $ex->getCode());
		}
		finally
		{
			// Return data
			return $result;
		}
	}
public function getStaticVersions(): array
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticVersions();
			if (!$result) throw new ServerException("StaticData failed to be loaded.");

			$this->result_data = $result;
		}
		catch (DataDragonExceptions\ArgumentException $ex)
		{
			throw new RequestException($ex->getMessage(), $ex->getCode());
		}
		finally
		{
			// Return data
			return $result;
		}
	}
public function getStaticVersions ( ) : array { $ result = false ; try { // Fetch StaticData from JSON files $ result = DataDragonAPI :: getStaticVersions ( ) ; if ( ! $ result ) throw new ServerException ( "StaticData failed to be loaded." ) ; $ this -> result_data = $ result ; } catch ( DataDragonExceptions \ ArgumentException $ ex ) { throw new RequestException ( $ ex -> getMessage ( ) , $ ex -> getCode ( ) ) ; } finally { // Return data return $ result ; } }
Retrieve version data.

@return array
@throws RequestException
@throws ServerException
Retrieve version data .