Total Complexity | 8 |
Total Lines | 81 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait QuotationTraits |
||
13 | { |
||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | private $data; |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $base; |
||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | private $format; |
||
26 | |||
27 | /** |
||
28 | * @var |
||
29 | */ |
||
30 | protected $date; |
||
31 | /** |
||
32 | * @var |
||
33 | */ |
||
34 | protected $endpoint; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $currency; |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @return mixed|null |
||
43 | */ |
||
44 | private function connect() |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param $result |
||
62 | * @return mixed |
||
63 | */ |
||
64 | private function setResponse($result) |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param $httpcode |
||
75 | * @return bool |
||
76 | */ |
||
77 | private function codeResponse($httpcode): bool |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * @param string $formatResponse |
||
88 | * @return string |
||
89 | */ |
||
90 | private function setFormat(string $formatResponse): string |
||
93 | } |
||
94 | } |