public function endpoint() {
		$endpoint = $this->getset('endpoint', func_get_args());
		return $this->validateEndpoint($endpoint ?: self::URI_API);
	}
public function endpoint() {
		$endpoint = $this->getset('endpoint', func_get_args());
		return $this->validateEndpoint($endpoint ?: self::URI_API);
	}
public function endpoint ( ) { $ endpoint = $ this -> getset ( 'endpoint' , func_get_args ( ) ) ; return $ this -> validateEndpoint ( $ endpoint ? : self :: URI_API ) ; }
Get and optionally set the endpoint.

@param string $endpoint (optional)
@return string
Get and optionally set the endpoint .