1 | <?php |
||
20 | class Connection implements LoggerAwareInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | const CLASS_SOAPCLIENT = 'SoapClient'; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | const CLASS_SOAPHEADER = 'SoapHeader'; |
||
31 | |||
32 | /** |
||
33 | * @var ReflectionClass |
||
34 | */ |
||
35 | private $client; |
||
36 | |||
37 | /** |
||
38 | * @var ReflectionClass |
||
39 | */ |
||
40 | private $header; |
||
41 | |||
42 | /** |
||
43 | * @var Array |
||
44 | */ |
||
45 | private $options = []; |
||
46 | |||
47 | /** |
||
48 | * @var LoggerInterface |
||
49 | */ |
||
50 | private $logger = null; |
||
51 | |||
52 | /** |
||
53 | * @param string $client |
||
54 | * @param string $header |
||
55 | * |
||
56 | * @throws InvalidArgumentException |
||
57 | */ |
||
58 | public function __construct($client = 'SoapClient', $header = 'SoapHeader') |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | */ |
||
78 | 1 | public function setLogger(LoggerInterface $logger) |
|
82 | |||
83 | |||
84 | /** |
||
85 | * @param array $config |
||
86 | * |
||
87 | * @return \SoapClient |
||
88 | */ |
||
89 | 2 | public function open(array $config = []) |
|
114 | } |
||
115 |