Total Complexity | 2 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class NanoRest |
||
23 | { |
||
24 | /** |
||
25 | * CurlHelper for handling curl-specific logic |
||
26 | * |
||
27 | * @var CurlHelper |
||
28 | */ |
||
29 | private $curlHelper = null; |
||
30 | |||
31 | /** |
||
32 | * NanoRest constructor |
||
33 | */ |
||
34 | public function __construct() |
||
35 | { |
||
36 | $this->curlHelper = new CurlHelper(); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Send previously prepared request |
||
41 | * |
||
42 | * @param RequestContext $requestContext |
||
43 | * |
||
44 | * @throws TransportException |
||
45 | * @throws ResponseContextException |
||
46 | * |
||
47 | * @return ResponseContext |
||
48 | */ |
||
49 | public function sendRequest( |
||
69 | } |
||
70 | } |
||
71 |