Localization_Country_PL   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrencyISO() 0 3 1
A getCode() 0 3 1
A getLabel() 0 3 1
A getNumberDecimalsSeparator() 0 3 1
A getNumberThousandsSeparator() 0 3 1
1
<?php
2
/**
3
 * @package Localization
4
 * @subpackage Countries
5
 */
6
7
namespace AppLocalize;
8
9
use AppLocalize\Localization\Countries\BaseCountry;
10
11
/**
12
 * Country class with the definitions for Poland.
13
 *
14
 * @package Localization
15
 * @subpackage Countries
16
 * @author Sebastian Mordziol <[email protected]>
17
 * @link http://www.mistralys.com
18
 */
19
class Localization_Country_PL extends BaseCountry
20
{
21
    public const ISO_CODE = 'pl';
22
23
    public function getCode(): string
24
    {
25
        return self::ISO_CODE;
26
    }
27
28
    public function getNumberThousandsSeparator() : string
29
    {
30
        return '.';
31
    }
32
33
    public function getNumberDecimalsSeparator() : string
34
    {
35
        return ',';
36
    }
37
38
    public function getLabel() : string
39
    {
40
        return t('Poland');
41
    }
42
43
    public function getCurrencyISO() : string
44
    {
45
        return Localization_Currency_PLN::ISO_CODE;
46
    }
47
}
48