Skip to content

Commit d691adb

Browse files
committed
Changed method order so all getters appears before setters in SoapOptions.
Minor text fixes.
1 parent 20970c6 commit d691adb

File tree

2 files changed

+51
-48
lines changed

2 files changed

+51
-48
lines changed

src/Net/Soap/SoapOptions.php

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ public function getProxyHost()
141141
return $this->get('proxy_host');
142142
}
143143

144+
/**
145+
* @return int
146+
*/
147+
public function getProxyPort()
148+
{
149+
return $this->get('proxy_port');
150+
}
151+
144152
/**
145153
* @param int $port
146154
*
@@ -152,11 +160,11 @@ public function setProxyPort($port)
152160
}
153161

154162
/**
155-
* @return int
163+
* @return string
156164
*/
157-
public function getProxyPort()
165+
public function getProxyLogin()
158166
{
159-
return $this->get('proxy_port');
167+
return $this->get('proxy_login');
160168
}
161169

162170
/**
@@ -172,9 +180,9 @@ public function setProxyLogin($login)
172180
/**
173181
* @return string
174182
*/
175-
public function getProxyLogin()
183+
public function getProxyPassword()
176184
{
177-
return $this->get('proxy_login');
185+
return $this->get('proxy_password');
178186
}
179187

180188
/**
@@ -190,27 +198,29 @@ public function setProxyPassword($password)
190198
/**
191199
* @return string
192200
*/
193-
public function getProxyPassword()
201+
public function getEncoding()
194202
{
195-
return $this->get('proxy_password');
203+
return $this->get('encoding');
196204
}
197205

198206
/**
199-
* @param string $encoding A valid system encoding; e.g. utf-8, iso-8859-1.
207+
* Sets the character encoding for strings.
208+
*
209+
* @param string $encoding Character encoding, e.g. utf-8.
200210
*
201-
* @return void
211+
* @return $this
202212
*/
203213
public function setEncoding($encoding)
204214
{
205215
return $this->set('encoding', "$encoding");
206216
}
207217

208218
/**
209-
* @return string
219+
* @return bool
210220
*/
211-
public function getEncoding()
221+
public function getTrace()
212222
{
213-
return $this->get('encoding');
223+
return $this->get('trace');
214224
}
215225

216226
/**
@@ -226,9 +236,9 @@ public function setTrace($trace)
226236
/**
227237
* @return bool
228238
*/
229-
public function getTrace()
239+
public function getExceptions()
230240
{
231-
return $this->get('trace');
241+
return $this->get('exceptions');
232242
}
233243

234244
/**
@@ -242,11 +252,11 @@ public function setExceptions($exceptions)
242252
}
243253

244254
/**
245-
* @return bool
255+
* @return array
246256
*/
247-
public function getExceptions()
257+
public function getClassmap()
248258
{
249-
return $this->get('exceptions');
259+
return $this->get('classmap');
250260
}
251261

252262
/**
@@ -260,11 +270,11 @@ public function setClassmap(array $classmap)
260270
}
261271

262272
/**
263-
* @return array
273+
* @return int
264274
*/
265-
public function getClassmap()
275+
public function getConnectionTimeout()
266276
{
267-
return $this->get('classmap');
277+
return $this->get('connection_timeout');
268278
}
269279

270280
/**
@@ -278,11 +288,11 @@ public function setConnectionTimeout($timeout)
278288
}
279289

280290
/**
281-
* @return int
291+
* @return array
282292
*/
283-
public function getConnectionTimeout()
293+
public function getTypemap()
284294
{
285-
return $this->get('connection_timeout');
295+
return $this->get('typemap');
286296
}
287297

288298
/**
@@ -296,30 +306,31 @@ public function setTypemap(array $typemap)
296306
}
297307

298308
/**
299-
* @return array
309+
* @return int
300310
*/
301-
public function getTypemap()
311+
public function getCacheWsdl()
302312
{
303-
return $this->get('typemap');
313+
return $this->get('cache_wsdl');
304314
}
305315

306316
/**
307-
* @param int $cacheWsdl Sets the WSDL caching mode to one of WSDL_CACHE_NONE, WSDL_CACHE_DISK, WSDL_CACHE_MEMORY
308-
* or WSDL_CACHE_BOTH.
317+
* Sets the WSDL caching mode.
318+
*
319+
* @param int $cacheMode One of WSDL_CACHE_NONE, WSDL_CACHE_DISK, WSDL_CACHE_MEMORY or WSDL_CACHE_BOTH.
309320
*
310321
* @return $this
311322
*/
312-
public function setCacheWsdl($cacheWsdl)
323+
public function setCacheWsdl($cacheMode)
313324
{
314-
return $this->set('cache_wsdl', $cacheWsdl|0);
325+
return $this->set('cache_wsdl', $cacheMode|0);
315326
}
316327

317328
/**
318-
* @return int
329+
* @return string
319330
*/
320-
public function getCacheWsdl()
331+
public function getUserAgent()
321332
{
322-
return $this->get('cache_wsdl');
333+
return $this->get('user_agent');
323334
}
324335

325336
/**
@@ -333,11 +344,11 @@ public function setUserAgent($userAgent)
333344
}
334345

335346
/**
336-
* @return string
347+
* @return int
337348
*/
338-
public function getUserAgent()
349+
public function getFeatures()
339350
{
340-
return $this->get('user_agent');
351+
return $this->get('features');
341352
}
342353

343354
/**
@@ -354,9 +365,9 @@ public function setFeatures($features)
354365
/**
355366
* @return int
356367
*/
357-
public function getFeatures()
368+
public function getSslMethod()
358369
{
359-
return $this->get('features');
370+
return $this->get('ssl_method');
360371
}
361372

362373
/**
@@ -370,14 +381,6 @@ public function setSslMethod($method)
370381
return $this->set('ssl_method', $method|0);
371382
}
372383

373-
/**
374-
* @return int
375-
*/
376-
public function getSslMethod()
377-
{
378-
return $this->get('ssl_method');
379-
}
380-
381384
/**
382385
* Extracts a list of SOAP Client options only.
383386
*

test/Functional/Porter/Net/Http/HttpConnectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testConnectionTimeout()
4949
return;
5050
}
5151

52-
self::fail('Expected exception not thrown.');
52+
self::fail('Expected exception was not thrown.');
5353
}
5454

5555
public function testErrorResponse()
@@ -66,7 +66,7 @@ public function testErrorResponse()
6666
$this->stopServer($server);
6767
}
6868

69-
self::fail('Expected exception not thrown.');
69+
self::fail('Expected exception was not thrown.');
7070
}
7171

7272
public function testOneTry()

0 commit comments

Comments
 (0)