Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class Api |
||
17 | { |
||
18 | /** @var ResponseTransformer */ |
||
19 | private $transformer; |
||
20 | /** @var BaseClientInterface */ |
||
21 | private $baseClient; |
||
22 | /** @var KunaClient */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * Api constructor. |
||
27 | * @param KunaClient $client |
||
28 | * @param BaseClientInterface|null $baseClient |
||
29 | */ |
||
30 | 13 | public function __construct(KunaClient $client, ?BaseClientInterface $baseClient = null) |
|
36 | 13 | } |
|
37 | |||
38 | /** |
||
39 | * @return ResponseTransformer |
||
40 | */ |
||
41 | 9 | public function getTransformer(): ResponseTransformer |
|
42 | { |
||
43 | 9 | return $this->transformer; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return BaseClientInterface |
||
48 | */ |
||
49 | 10 | public function getBaseClient(): BaseClientInterface |
|
52 | } |
||
53 | } |
||
54 |