Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class HttpClientFactory |
||
13 | { |
||
14 | /** |
||
15 | * Build the HTTP client to talk with the API. |
||
16 | * |
||
17 | * @param string $apiKey API key |
||
18 | * @param Plugin[] $plugins List of additional plugins to use |
||
19 | * @param HttpClient $client Base HTTP client |
||
20 | * |
||
21 | * @return HttpClient |
||
22 | */ |
||
23 | public static function create($apiKey, array $plugins = [], HttpClient $client = null): HttpClient |
||
37 |