1 | <?php |
||
13 | class Config extends SoapConfig |
||
14 | { |
||
15 | const DEFAULT_RESPONSE_TIMEOUT = 20; |
||
16 | const RETRY_MINUTES = 60; |
||
17 | const SOAPHEADER_URL = 'http://www.webservices.nl/soap/'; |
||
18 | |||
19 | /** |
||
20 | * List with Soap Server endpoints. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected static $endPoints = [ |
||
25 | 'https://ws1.webservices.nl/soap', |
||
26 | 'https://ws2.webservices.nl/soap', |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Config constructor. |
||
31 | * |
||
32 | * @param PlatformConfig $config |
||
33 | */ |
||
34 | public function __construct(PlatformConfig $config) |
||
49 | |||
50 | /** |
||
51 | * @return Converter |
||
52 | */ |
||
53 | public function getConverter() |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | public function getConnectionTimeout() |
||
66 | |||
67 | /** |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getPassword() |
||
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | public function getRetryMinutes() |
||
82 | |||
83 | /** |
||
84 | * @return int |
||
85 | */ |
||
86 | public function getResponseTimeout() |
||
90 | |||
91 | /** |
||
92 | * @return array |
||
93 | */ |
||
94 | public function getSoapHeaders() |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getUserName() |
||
106 | |||
107 | /** |
||
108 | * @return array |
||
109 | */ |
||
110 | public function toArray() |
||
123 | |||
124 | /** |
||
125 | * @return PlatformConfig |
||
126 | */ |
||
127 | public function getPlatformConfig() |
||
131 | } |
||
132 |