1 | <?php |
||
7 | abstract class AbstractResponse implements ResponseInterface{ |
||
8 | |||
9 | protected $CurlResponse; |
||
10 | protected $headers; |
||
11 | protected $body; |
||
12 | protected $status; |
||
13 | protected $error; |
||
14 | |||
15 | public function __construct($curlResponse,$curlRequest){ |
||
22 | |||
23 | protected function setStatus($curlRequest){ |
||
26 | |||
27 | protected function extractResponse($curlRequest){ |
||
32 | |||
33 | protected function checkErrors($curlRequest){ |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function getStatus(){ |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function getBody() { |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function getHeaders() { |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function getError(){ |
||
68 | |||
69 | } |