getNumberThousandsSeparator()   A
last analyzed

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
 * File containing the {@link Localization_Country_UK} class.
4
 * @package Localization
5
 * @subpackage Countries
6
 * @see Localization_Country_UK
7
 */
8
9
namespace AppLocalize;
10
11
use AppLocalize\Localization\Countries\BaseCountry;
12
13
/**
14
 * Country class with the definitions for England.
15
 *
16
 * @package Localization
17
 * @subpackage Countries
18
 * @author Sebastian Mordziol <[email protected]>
19
 * @link http://www.mistralys.com
20
 */
21
class Localization_Country_UK extends BaseCountry
22
{
23
    public const ISO_CODE = 'uk';
24
25
    public function getCode(): string
26
    {
27
        return self::ISO_CODE;
28
    }
29
30
    public function getNumberThousandsSeparator() : string
31
    {
32
        return ',';
33
    }
34
35
    public function getNumberDecimalsSeparator() : string
36
    {
37
        return '.';
38
    }
39
40
    public function getLabel() : string
41
    {
42
        return t('United Kingdom');
43
    }
44
45
    public function getCurrencyISO() : string
46
    {
47
        return Localization_Currency_GBP::ISO_CODE;
48
    }
49
}
50