| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function create(ClientInterface $client, $wsdl, RequestBuilder $httpBinding, array $options = []) |
||
| 13 | { |
||
| 14 | $interpreterPromise = $client->requestAsync('GET', $wsdl)->then( |
||
| 15 | function (ResponseInterface $response) use ($options) { |
||
| 16 | $wsdl = $response->getBody()->getContents(); |
||
| 17 | return new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options); |
||
| 18 | } |
||
| 19 | ); |
||
| 20 | |||
| 21 | return new SoapClient($client, $interpreterPromise, $httpBinding); |
||
| 22 | } |
||
| 23 | } |