From d22086dd2eee5ca02e4c29b9a5bdf3645bfdbbff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Ormaechea?= Date: Tue, 4 Dec 2018 16:47:03 -0300 Subject: [PATCH] Getters added (#58) (#59) --- src/Curl/Curl.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 7ec92e5..60567a6 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -696,4 +696,24 @@ public function getResponseHeaders($headerKey = null) return $headers; } + + public function getResponse() + { + return $this->response; + } + + public function getErrorCode() + { + return $this->curl_error_code; + } + + public function getErrorMessage() + { + return $this->curl_error_message; + } + + public function getHttpStatus() + { + return $this->http_status_code; + } }