public function setSetting( string $name, $value ): self
	{
		if (in_array($name, self::SETTINGS_INIT_ONLY))
			throw new SettingsException("Settings option '$name' can only be set on initialization of the library.");

		$this->settings[$name] = $value;
		return $this;
	}
public function setSetting( string $name, $value ): self
	{
		if (in_array($name, self::SETTINGS_INIT_ONLY))
			throw new SettingsException("Settings option '$name' can only be set on initialization of the library.");

		$this->settings[$name] = $value;
		return $this;
	}
public function setSetting ( string $ name , $ value ) : self { if ( in_array ( $ name , self :: SETTINGS_INIT_ONLY ) ) throw new SettingsException ( "Settings option '$name' can only be set on initialization of the library." ) ; $ this -> settings [ $ name ] = $ value ; return $ this ; }
Sets new value for specified key in settings.

@param string $name
@param mixed  $value

@return LeagueAPI
@throws SettingsException
Sets new value for specified key in settings .