protected function addQuery( string $name, $value ): self
	{
		if (!is_null($value))
		{
			$this->query_data[$name] = $value;
		}

		return $this;
	}
protected function addQuery( string $name, $value ): self
	{
		if (!is_null($value))
		{
			$this->query_data[$name] = $value;
		}

		return $this;
	}
protected function addQuery ( string $ name , $ value ) : self { if ( ! is_null ( $ value ) ) { $ this -> query_data [ $ name ] = $ value ; } return $ this ; }
Adds GET parameter to called URL.

@param string      $name
@param string|null $value

@return LeagueAPI
Adds GET parameter to called URL .