1 | <?php |
||
14 | class SoapConfig implements ConfigInterface |
||
15 | { |
||
16 | const DEFAULT_RESPONSE_TIMEOUT = 20; |
||
17 | const RETRY_MINUTES = 60; |
||
18 | |||
19 | /** |
||
20 | * @var ConverterInterface |
||
21 | */ |
||
22 | protected $converter; |
||
23 | |||
24 | /** |
||
25 | * List with Soap Server endpoints for platform. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected static $endPoints = []; |
||
30 | |||
31 | /** |
||
32 | * @var PlatformConfigInterface |
||
33 | */ |
||
34 | protected $platformConfig; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $soapHeaders = []; |
||
40 | |||
41 | /** |
||
42 | * SoapConfig constructor. |
||
43 | * |
||
44 | * @param PlatformConfigInterface $config |
||
45 | */ |
||
46 | 12 | public function __construct(PlatformConfigInterface $config) |
|
50 | |||
51 | /** |
||
52 | * Returns configured instance. |
||
53 | * |
||
54 | * @param PlatformConfigInterface $config |
||
55 | * |
||
56 | * @return SoapConfig |
||
57 | */ |
||
58 | 12 | public static function configure($config) |
|
62 | |||
63 | /** |
||
64 | * @return ConverterInterface |
||
65 | */ |
||
66 | 1 | public function getConverter() |
|
70 | |||
71 | /** |
||
72 | * Return array with Endpoints. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | 8 | public static function getEndPoints() |
|
80 | |||
81 | /** |
||
82 | * @return PlatformConfigInterface |
||
83 | */ |
||
84 | 1 | public function getPlatformConfig() |
|
88 | |||
89 | /** |
||
90 | * @return array |
||
91 | */ |
||
92 | 1 | public function getSoapHeaders() |
|
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | 8 | public function hasConverter() |
|
104 | |||
105 | /** |
||
106 | * Return config as an array. |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | 1 | public function toArray() |
|
120 | } |
||
121 |