1 | <?php |
||
9 | class Client |
||
10 | { |
||
11 | /** |
||
12 | * The HTTP client instance. |
||
13 | * |
||
14 | * @var \GuzzleHttp\ClientInterface |
||
15 | */ |
||
16 | protected $http; |
||
17 | |||
18 | /** |
||
19 | * The HTTP client parameters. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $params; |
||
24 | |||
25 | /** |
||
26 | * The Authy service API endpoint. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $api; |
||
31 | |||
32 | /** |
||
33 | * Create a new Authy client instance. |
||
34 | * |
||
35 | * @param \GuzzleHttp\ClientInterface $client |
||
36 | * @param string $key |
||
37 | * @param string $format |
||
38 | * |
||
39 | * @throws \Rinvex\Authy\InvalidConfiguration |
||
40 | */ |
||
41 | public function __construct(ClientInterface $client, $key, $format = 'json') |
||
54 | } |
||
55 |