1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace VinaiKopp\CurrencyInfo; |
4
|
|
|
|
5
|
|
|
use VinaiKopp\CurrencyInfo\StaticAccess\CurrencyInfo as StaticCurrencyInfo; |
6
|
|
|
|
7
|
|
|
class CurrencyInfo implements CurrencyInfoInterface |
8
|
|
|
{ |
9
|
|
|
public $staticCurrencyInfoClass = StaticCurrencyInfo::class; |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* @return array[] |
13
|
|
|
*/ |
14
|
1 |
|
public function getMap() |
15
|
|
|
{ |
16
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__]); |
17
|
|
|
} |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @param string $currencyCode |
21
|
|
|
* @return array |
22
|
|
|
*/ |
23
|
1 |
|
public function getMapForCurrency($currencyCode) |
24
|
|
|
{ |
25
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__], $currencyCode); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @return string[] |
30
|
|
|
*/ |
31
|
1 |
|
public function getSymbolMap() |
32
|
|
|
{ |
33
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__]); |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @param string $currencyCode |
38
|
|
|
* @return string |
39
|
|
|
*/ |
40
|
1 |
|
public function getSymbolForCurrency($currencyCode) |
41
|
|
|
{ |
42
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__], $currencyCode); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @return string[] |
47
|
|
|
*/ |
48
|
1 |
|
public function getNativeSymbolMap() |
49
|
|
|
{ |
50
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__]); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @param string $currencyCode |
55
|
|
|
* @return string |
56
|
|
|
*/ |
57
|
1 |
|
public function getNativeSymbolForCurrency($currencyCode) |
58
|
|
|
{ |
59
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__], $currencyCode); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @return int[] |
64
|
|
|
*/ |
65
|
1 |
|
public function getFractionDigitsMap() |
66
|
|
|
{ |
67
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__]); |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @param string $currencyCode |
72
|
|
|
* @return int |
73
|
|
|
*/ |
74
|
1 |
|
public function getFractionDigitsForCurrency($currencyCode) |
75
|
|
|
{ |
76
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__], $currencyCode); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return float[] |
81
|
|
|
*/ |
82
|
1 |
|
public function getRoundingMap() |
83
|
|
|
{ |
84
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__]); |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $currencyCode |
89
|
|
|
* @return float |
90
|
|
|
*/ |
91
|
1 |
|
public function getRoundingForCurrency($currencyCode) |
92
|
|
|
{ |
93
|
1 |
|
return forward_static_call([$this->staticCurrencyInfoClass, __FUNCTION__], $currencyCode); |
94
|
|
|
} |
95
|
|
|
} |
96
|
|
|
|