Skip to content

Commit d22086d

Browse files
jormaecheaamouhzi
authored andcommitted
Getters added (#58) (#59)
1 parent c12b2c4 commit d22086d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Curl/Curl.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,4 +696,24 @@ public function getResponseHeaders($headerKey = null)
696696

697697
return $headers;
698698
}
699+
700+
public function getResponse()
701+
{
702+
return $this->response;
703+
}
704+
705+
public function getErrorCode()
706+
{
707+
return $this->curl_error_code;
708+
}
709+
710+
public function getErrorMessage()
711+
{
712+
return $this->curl_error_message;
713+
}
714+
715+
public function getHttpStatus()
716+
{
717+
return $this->http_status_code;
718+
}
699719
}

0 commit comments

Comments
 (0)