| 1 | <?php |
||
| 7 | class SoapClientExtended extends SoapClient |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * __construct |
||
| 11 | * @param mixed $wsdl NULL for non-wsdl mode or URL string for wsdl mode |
||
| 12 | * @param array $options |
||
| 13 | */ |
||
| 14 | public function __construct($wsdl, $options) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * __doRequest |
||
| 21 | * Changes the original behavior of the class by removing prefixes, |
||
| 22 | * suffixes and line breaks that are not supported by some webservices |
||
| 23 | * due to their particular settings |
||
| 24 | * @param string $request |
||
| 25 | * @param string$location |
||
| 26 | * @param string $action |
||
| 27 | * @param int $version |
||
| 28 | * @param int $oneWay |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function __doRequest($request, $location, $action, $version, $oneWay = 0) |
||
| 42 | } |
||
| 43 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.