@@ -21,7 +21,7 @@ abstract class CitrixAbstract
21
21
22
22
private $ verify_ssl = false ;
23
23
24
- private $ http_client ;
24
+ private $ client ;
25
25
26
26
private $ authObject ; //holds all the values after auth
27
27
@@ -172,9 +172,9 @@ public function getResponseCollection()
172
172
public function sendRequest ()
173
173
{
174
174
175
- if (!$ this ->http_client instanceof HttpClient) {
175
+ if (!$ this ->client instanceof HttpClient) {
176
176
177
- $ this ->http_client = new HttpClient ([
177
+ $ this ->client = new HttpClient ([
178
178
'base_uri ' => $ this ->base_uri ,
179
179
'port ' => $ this ->port ,
180
180
'timeout ' => $ this ->timeout ,
@@ -189,7 +189,7 @@ public function sendRequest()
189
189
190
190
case 'GET ' :
191
191
192
- $ this ->httpResponse = $ this ->http_client ->get ($ this ->getUrl (), [
192
+ $ this ->httpResponse = $ this ->client ->get ($ this ->getUrl (), [
193
193
'headers ' => [
194
194
'Content-Type ' => 'application/json; charset=utf-8 ' ,
195
195
'Accept ' => 'application/json ' ,
@@ -201,7 +201,7 @@ public function sendRequest()
201
201
202
202
case 'POST ' :
203
203
204
- $ this ->httpResponse = $ this ->http_client ->post ($ this ->getUrl (), [
204
+ $ this ->httpResponse = $ this ->client ->post ($ this ->getUrl (), [
205
205
'headers ' => [
206
206
'Content-Type ' => 'application/json; charset=utf-8 ' ,
207
207
'Accept ' => 'application/json ' ,
@@ -213,7 +213,7 @@ public function sendRequest()
213
213
214
214
case 'PUT ' :
215
215
216
- $ this ->httpResponse = $ this ->http_client ->put ($ this ->getUrl (), [
216
+ $ this ->httpResponse = $ this ->client ->put ($ this ->getUrl (), [
217
217
'headers ' => [
218
218
'Content-Type ' => 'application/json; charset=utf-8 ' ,
219
219
'Accept ' => 'application/json ' ,
@@ -225,7 +225,7 @@ public function sendRequest()
225
225
226
226
case 'DELETE ' :
227
227
228
- $ this ->httpResponse = $ this ->http_client ->delete ($ this ->getUrl (), [
228
+ $ this ->httpResponse = $ this ->client ->delete ($ this ->getUrl (), [
229
229
'headers ' => [
230
230
'Content-Type ' => 'application/json; charset=utf-8 ' ,
231
231
'Accept ' => 'application/json ' ,
0 commit comments