LocaleId   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 25
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A endonym() 0 4 1
A endonymSortable() 0 4 1
A language() 0 4 1
A numberSymbols() 0 7 1
1
<?php namespace Fisharebest\Localization\Locale;
2
3
use Fisharebest\Localization\Language\LanguageId;
4
5
/**
6
 * Class LocaleId - Indonesian
7
 *
8
 * @author    Greg Roach <[email protected]>
9
 * @copyright (c) 2018 Greg Roach
10
 * @license   GPLv3+
11
 */
12
class LocaleId extends AbstractLocale implements LocaleInterface
13
{
14
    public function endonym()
15
    {
16
        return 'Indonesia';
17
    }
18
19
    public function endonymSortable()
20
    {
21
        return 'INDONESIA';
22
    }
23
24
    public function language()
25
    {
26
        return new LanguageId();
27
    }
28
29
    public function numberSymbols()
30
    {
31
        return array(
32
            self::GROUP   => self::DOT,
33
            self::DECIMAL => self::COMMA,
34
        );
35
    }
36
}
37