1 | <?php |
||
21 | abstract class AbstractEndpoint |
||
22 | { |
||
23 | /** |
||
24 | * @var \SoapClient |
||
25 | */ |
||
26 | protected $soapClient; |
||
27 | |||
28 | /** |
||
29 | * @var Wsse |
||
30 | */ |
||
31 | protected $wsse; |
||
32 | |||
33 | /** |
||
34 | * @var boolean |
||
35 | */ |
||
36 | protected $isSecure; |
||
37 | |||
38 | /** |
||
39 | * Constructor class. |
||
40 | * |
||
41 | * @param \SoapClient $soapClient The soap client. |
||
42 | * @param Wsse $wsse The handler of soap wsse (default null). |
||
43 | * @param boolean $isSecure Whether the webservice is secured or not (default false). |
||
44 | */ |
||
45 | 3 | public function __construct(\SoapClient $soapClient, Wsse $wsse = null, $isSecure = false) |
|
51 | |||
52 | /** |
||
53 | * Calls web services with SoapClient. |
||
54 | * |
||
55 | * @param string $methodName The name of method to call. |
||
56 | * @param array $arguments The arguments of the function to call (default empty). |
||
57 | * |
||
58 | * @return Soap response |
||
59 | */ |
||
60 | 3 | public function call($methodName, array $arguments = []) |
|
69 | } |
||
70 |