Completed
Push — master ( e29564...0c58a0 )
by Greg
22:41 queued 10:16
created

LanguageAng   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 3
dl 0
loc 13
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A code() 0 3 1
A defaultTerritory() 0 3 1
A pluralRule() 0 3 1
1
<?php namespace Fisharebest\Localization\Language;
2
3
use Fisharebest\Localization\PluralRule\PluralRule1;
4
use Fisharebest\Localization\Territory\TerritoryGb;
5
6
/**
7
 * Class LanguageEn - Representation of the Anglo-Saxon / Old-English language.
8
 *
9
 * @author    Greg Roach <[email protected]>
10
 * @copyright (c) 2016 Greg Roach
11
 * @license   GPLv3+
12
 */
13
class LanguageAng extends AbstractLanguage implements LanguageInterface {
14
	public function code() {
15
		return 'ang';
16
	}
17
18
	public function defaultTerritory() {
19
		return new TerritoryGb;
20
	}
21
22
	public function pluralRule() {
23
		return new PluralRule1;
24
	}
25
}
26