Skip to content

Commit c56dc73

Browse files
authored
Update MockFactory.php
1 parent 8b7cb00 commit c56dc73

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ClientFactory/MockFactory.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Http\HttplugBundle\ClientFactory;
44

5+
use Http\Client\HttpClient;
56
use Http\Mock\Client;
67

78
/**
@@ -10,14 +11,16 @@
1011
class MockFactory implements ClientFactory
1112
{
1213
/**
13-
* @var Client
14+
* @var HttpClient
1415
*/
1516
private $client;
1617

1718
/**
18-
* @param Client $client
19+
* Set the client instance that this factory should return.
20+
*
21+
* Note that this can be any client, not only a mock client.
1922
*/
20-
public function setClient(Client $client)
23+
public function setClient(HttpClient $client)
2124
{
2225
$this->client = $client;
2326
}

0 commit comments

Comments
 (0)