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

Localization_Country_CH   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 22
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

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