1 | <?php |
||
18 | final class PsrClientFactory implements ClientFactoryInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var PsrClientInterface |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @var RequestFactoryInterface |
||
27 | */ |
||
28 | private $requestFactory; |
||
29 | |||
30 | /** |
||
31 | * Initialize client. |
||
32 | */ |
||
33 | public function __construct(PsrClientInterface $client, RequestFactoryInterface $requestFactory) |
||
38 | |||
39 | public function createClient(string $host, string $token): ClientInterface |
||
45 | } |
||
46 |