From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- .../src/Guzzle/Http/Exception/CurlException.php | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 vendor/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php (limited to 'vendor/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php') diff --git a/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php b/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php new file mode 100644 index 0000000..a6a744a --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php @@ -0,0 +1,101 @@ +curlError = $error; + $this->curlErrorNo = $number; + + return $this; + } + + /** + * Set the associated curl handle + * + * @param CurlHandle $handle Curl handle + * + * @return self + */ + public function setCurlHandle(CurlHandle $handle) + { + $this->handle = $handle; + + return $this; + } + + /** + * Get the associated cURL handle + * + * @return CurlHandle|null + */ + public function getCurlHandle() + { + return $this->handle; + } + + /** + * Get the associated cURL error message + * + * @return string|null + */ + public function getError() + { + return $this->curlError; + } + + /** + * Get the associated cURL error number + * + * @return int|null + */ + public function getErrorNo() + { + return $this->curlErrorNo; + } + + /** + * Returns curl information about the transfer + * + * @return array + */ + public function getCurlInfo() + { + return $this->curlInfo; + } + + /** + * Set curl transfer information + * + * @param array $info Array of curl transfer information + * + * @return self + * @link http://php.net/manual/en/function.curl-getinfo.php + */ + public function setCurlInfo(array $info) + { + $this->curlInfo = $info; + + return $this; + } +} -- cgit v1.2.3-54-g00ecf