protected function setResource( string $resource, string $endpoint ): self
	{
		$this->resource = $resource;
		$this->resource_endpoint = $endpoint;
		return $this;
	}
protected function setResource( string $resource, string $endpoint ): self
	{
		$this->resource = $resource;
		$this->resource_endpoint = $endpoint;
		return $this;
	}
protected function setResource ( string $ resource , string $ endpoint ) : self { $ this -> resource = $ resource ; $ this -> resource_endpoint = $ endpoint ; return $ this ; }
Sets call resource for target endpoint.

@param string $resource
@param string $endpoint

@return LeagueAPI
Sets call resource for target endpoint .