1 | <?php |
||
19 | final class PluginClientFactory |
||
20 | { |
||
21 | /** |
||
22 | * @var Collector |
||
23 | */ |
||
24 | private $collector; |
||
25 | |||
26 | /** |
||
27 | * @var Formatter |
||
28 | */ |
||
29 | private $formatter; |
||
30 | |||
31 | /** |
||
32 | * @var Stopwatch |
||
33 | */ |
||
34 | private $stopwatch; |
||
35 | |||
36 | /** |
||
37 | * @param Collector $collector |
||
38 | * @param Formatter $formatter |
||
39 | * @param Stopwatch $stopwatch |
||
40 | */ |
||
41 | 6 | public function __construct(Collector $collector, Formatter $formatter, Stopwatch $stopwatch) |
|
47 | |||
48 | /** |
||
49 | * @param HttpClient|HttpAsyncClient $client |
||
50 | * @param Plugin[] $plugins |
||
51 | * @param array $options { |
||
52 | * |
||
53 | * @var string $client_name to give client a name which may be used when displaying client information like in |
||
54 | * the HTTPlugBundle profiler. |
||
55 | * } |
||
56 | * |
||
57 | * @see PluginClient constructor for PluginClient specific $options. |
||
58 | * |
||
59 | * @return PluginClient |
||
60 | */ |
||
61 | public function createClient($client, array $plugins = [], array $options = []) |
||
77 | } |
||
78 |