CurrencyInfo   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 10
c 2
b 0
f 1
lcom 1
cbo 0
dl 0
loc 89
ccs 20
cts 20
cp 1
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getMap() 0 4 1
A getMapForCurrency() 0 4 1
A getSymbolMap() 0 4 1
A getSymbolForCurrency() 0 4 1
A getNativeSymbolMap() 0 4 1
A getNativeSymbolForCurrency() 0 4 1
A getFractionDigitsMap() 0 4 1
A getFractionDigitsForCurrency() 0 4 1
A getRoundingMap() 0 4 1
A getRoundingForCurrency() 0 4 1
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