1 | <?php declare(strict_types = 1); |
||
5 | class GuzzleSoapClientDriver implements SoapClientDriver |
||
6 | { |
||
7 | |||
8 | const DEFAULT_TIMEOUT = 2.5; |
||
9 | const HEADER_USER_AGENT = 'PHP'; |
||
10 | |||
11 | /** @var \GuzzleHttp\Client */ |
||
12 | private $httpClient; |
||
13 | |||
14 | /** @var float */ |
||
15 | private $connectionTimeout; |
||
16 | |||
17 | /** @var float */ |
||
18 | private $requestTimeout; |
||
19 | |||
20 | public function __construct(\GuzzleHttp\Client $httpClient, float $connectionTimeout = self::DEFAULT_TIMEOUT, float $requestTimeout = self::DEFAULT_TIMEOUT) |
||
26 | |||
27 | public function send(string $request, string $location, string $action, int $soapVersion): string |
||
50 | |||
51 | } |
||
52 |