1 | <?php |
||
11 | final class MockFactory implements ClientFactory |
||
12 | { |
||
13 | /** |
||
14 | * @var HttpClient |
||
15 | */ |
||
16 | private $client; |
||
17 | |||
18 | /** |
||
19 | * Set the client instance that this factory should return. |
||
20 | * |
||
21 | * Note that this can be any client, not only a mock client. |
||
22 | */ |
||
23 | 1 | public function setClient(HttpClient $client) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function createClient(array $config = []) |
|
43 | } |
||
44 |