diff options
Diffstat (limited to 'src/PurpleCode/PCurl/Json/PJsonCurlResponse.php')
-rw-r--r-- | src/PurpleCode/PCurl/Json/PJsonCurlResponse.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/PurpleCode/PCurl/Json/PJsonCurlResponse.php b/src/PurpleCode/PCurl/Json/PJsonCurlResponse.php new file mode 100644 index 0000000..459e2b8 --- /dev/null +++ b/src/PurpleCode/PCurl/Json/PJsonCurlResponse.php @@ -0,0 +1,28 @@ +<?php + +/** + * PCurl is a REST client libary for PHP. + * + * See http://github.com/purplecode/php.curl for details. + * + * This code is licensed for use, modification, and distribution + * under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License) + */ + +namespace PurpleCode\PCurl\Json; + +use PurpleCode\PCurl\PCurlResponse; + +class PJsonCurlResponse extends PCurlResponse { + + public function __construct($header, $body, $httpCode, $json) { + parent::__construct($header, $body, $httpCode); + + $this->json = $json; + } + + public function getJson() { + return $this->json; + } + +} |