1 | <?php |
||
18 | class SoapFactory extends AbstractClientFactory |
||
19 | { |
||
20 | /** |
||
21 | * @var SoapConfig |
||
22 | */ |
||
23 | private $config; |
||
24 | |||
25 | /** |
||
26 | * SoapBuilder constructor. |
||
27 | * |
||
28 | * @param PlatformConfigInterface $platformConfig |
||
29 | * |
||
30 | * @throws InputException |
||
31 | */ |
||
32 | public function __construct(PlatformConfigInterface $platformConfig) |
||
37 | |||
38 | /** |
||
39 | * Static function (LSB) for building this class. |
||
40 | * |
||
41 | * @param PlatformConfigInterface $platformConfig PlatformConfig to create soapConfig Object |
||
42 | * |
||
43 | * @throws InputException |
||
44 | * @return static |
||
45 | */ |
||
46 | public static function build(PlatformConfigInterface $platformConfig) |
||
50 | |||
51 | /** |
||
52 | * Creates a SoapClient with configured SoapConfig object and given additional settings. |
||
53 | * |
||
54 | * @param array $settings additional settings go here |
||
55 | * |
||
56 | * @return SoapClient |
||
57 | * @throws InputException |
||
58 | * @throws NoServerAvailableException |
||
59 | * @throws \InvalidArgumentException |
||
60 | */ |
||
61 | public function create(array $settings = []) |
||
96 | |||
97 | /** |
||
98 | * Configure PSR-7 guzzle client for this soap factory. |
||
99 | * |
||
100 | * @param array $settings settings with extra guzzle settings |
||
101 | * @param Manager $manager endpoint Manager |
||
102 | * |
||
103 | * @return Client |
||
104 | * @throws \WebservicesNl\Common\Exception\Server\NoServerAvailableException |
||
105 | */ |
||
106 | private function createCurlClient(array $settings, Manager $manager) |
||
112 | |||
113 | /** |
||
114 | * Creates and configures a EndpointManager. |
||
115 | * |
||
116 | * If url key is present in settings array, this url will be set to the active endpoint |
||
117 | * |
||
118 | * @param array $settings optional settings |
||
119 | * |
||
120 | * @return Manager Endpoint manager |
||
121 | * @throws InputException |
||
122 | */ |
||
123 | private function createEndpointManager(array $settings = []) |
||
145 | |||
146 | /** |
||
147 | * Return SoapConfig. |
||
148 | * |
||
149 | * @return SoapConfig |
||
150 | */ |
||
151 | public function getConfig() |
||
155 | } |
||
156 |