diff options
author | purplecode <niespammnie@gmail.com> | 2014-12-24 12:20:42 +0100 |
---|---|---|
committer | purplecode <niespammnie@gmail.com> | 2014-12-24 12:20:42 +0100 |
commit | ffd2008900b34c003e99e09d710586e0435f5af6 (patch) | |
tree | 56be804884177a9e6696d566390eb9c2c6bfb5e7 /src/PurpleCode/PCurl/Json/PJsonCurlResponse.php | |
parent | a3b4c26df66605c76c5893dc1aee2d578b474aed (diff) | |
download | php.curl-ffd2008900b34c003e99e09d710586e0435f5af6.zip php.curl-ffd2008900b34c003e99e09d710586e0435f5af6.tar.gz php.curl-ffd2008900b34c003e99e09d710586e0435f5af6.tar.bz2 |
json, object response changes + test fixes
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; + } + +} |