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