1 | <?php |
||
18 | final class ClientFactory implements ClientFactoryInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var HttpClient |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @var MessageFactory |
||
27 | */ |
||
28 | private $messageFactory; |
||
29 | |||
30 | /** |
||
31 | * Initialize client. |
||
32 | * |
||
33 | * @param HttpClient $client |
||
34 | * @param MessageFactory $messageFactory |
||
35 | */ |
||
36 | public function __construct(HttpClient $client, MessageFactory $messageFactory) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function createPiwikClient(string $host, string $token): ClientInterface |
||
51 | } |
||
52 |