| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __construct(string $apiID, string $apiKey, string $environment, string $version = '2', ?array $configGuzzle = []) |
||
| 15 | { |
||
| 16 | Client::__construct( |
||
| 17 | new IpagEnvironment($environment), |
||
| 18 | new GuzzleHttpClient( |
||
| 19 | array_merge( |
||
| 20 | [ |
||
| 21 | 'headers' => [ |
||
| 22 | 'Authorization' => 'Basic ' . base64_encode("{$apiID}:{$apiKey}"), |
||
| 23 | 'Content-Type' => 'application/json', |
||
| 24 | 'x-api-version' => $version, |
||
| 25 | ], |
||
| 26 | ], |
||
| 27 | $configGuzzle |
||
| 28 | ) |
||
| 29 | ), |
||
| 30 | new JsonSerializer() |
||
| 31 | ); |
||
| 39 | } |