LanguageKs   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A code() 0 4 1
A defaultTerritory() 0 4 1
A defaultScript() 0 4 1
A pluralRule() 0 4 1
1
<?php namespace Fisharebest\Localization\Language;
2
3
use Fisharebest\Localization\PluralRule\PluralRule1;
4
use Fisharebest\Localization\Script\ScriptArab;
5
use Fisharebest\Localization\Territory\TerritoryIn;
6
7
/**
8
 * Class LanguageKs - Representation of the Kashmiri language.
9
 *
10
 * @author    Greg Roach <[email protected]>
11
 * @copyright (c) 2018 Greg Roach
12
 * @license   GPLv3+
13
 */
14
class LanguageKs extends AbstractLanguage implements LanguageInterface
15
{
16
    public function code()
17
    {
18
        return 'ks';
19
    }
20
21
    public function defaultTerritory()
22
    {
23
        return new TerritoryIn();
24
    }
25
26
    public function defaultScript()
27
    {
28
        return new ScriptArab();
29
    }
30
31
    public function pluralRule()
32
    {
33
        return new PluralRule1();
34
    }
35
}
36