LanguageAr   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A code() 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\PluralRule12;
4
use Fisharebest\Localization\Script\ScriptArab;
5
6
/**
7
 * Class LanguageAr - Representation of the Arabic language.
8
 *
9
 * @author    Greg Roach <[email protected]>
10
 * @copyright (c) 2018 Greg Roach
11
 * @license   GPLv3+
12
 */
13
class LanguageAr extends AbstractLanguage implements LanguageInterface
14
{
15
    public function code()
16
    {
17
        return 'ar';
18
    }
19
20
    public function defaultScript()
21
    {
22
        return new ScriptArab();
23
    }
24
25
    public function pluralRule()
26
    {
27
        return new PluralRule12();
28
    }
29
}
30