summaryrefslogtreecommitdiffstats
path: root/src/PurpleCode/PCurl/PJsonCurl.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/PurpleCode/PCurl/PJsonCurl.php')
-rw-r--r--src/PurpleCode/PCurl/PJsonCurl.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/PurpleCode/PCurl/PJsonCurl.php b/src/PurpleCode/PCurl/PJsonCurl.php
deleted file mode 100644
index aad8bd4..0000000
--- a/src/PurpleCode/PCurl/PJsonCurl.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?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;
-
-use PurpleCode\PCurl\PCurlJsonResponse;
-
-class PJsonCurl extends PCurl {
-
- private $arrayResponse;
-
- public function __construct($host) {
- parent::__construct($host);
-
- $this->arrayResponse = false;
- $this->contentTypeJson();
- }
-
- public function call($method, $url, $payload = '') {
- $payload = json_encode($payload);
- $response = parent::call($method, $url, $payload);
- return new PCurlJsonResponse($response->getHeader(), $response->getBody(), $this->arrayResponse);
- }
-
- public function arrayResponse($arrayResponse = true) {
- $this->arrayResponse = $arrayResponse;
- }
-
-}