Passed
Push — master ( 8b5ce5...b7fcc1 )
by Sebastian
12:08
created

Localization_Country_PL::getCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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