German::getSuffixes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TheIconic\NameParser\Language;
4
5
use TheIconic\NameParser\LanguageInterface;
6
7
class German implements LanguageInterface
8
{
9
    const SUFFIXES = [
10
        '1.' => '1.',
11
        '2.' => '2.',
12
        '3.' => '3.',
13
        '4.' => '4.',
14
        '5.' => '5.',
15
        'i' => 'I',
16
        'ii' => 'II',
17
        'iii' => 'III',
18
        'iv' => 'IV',
19
        'v' => 'V',
20
    ];
21
22
    const SALUTATIONS = [
23
        'herr' => 'Herr',
24
        'hr' => 'Herr',
25
        'frau' => 'Frau',
26
        'fr' => 'Frau'
27
    ];
28
29
    const LASTNAME_PREFIXES = [
30
        'der' => 'der',
31
        'von' => 'von',
32
    ];
33
34
    public function getSuffixes(): array
35
    {
36
        return self::SUFFIXES;
37
    }
38
39
    public function getSalutations(): array
40
    {
41
        return self::SALUTATIONS;
42
    }
43
44
    public function getLastnamePrefixes(): array
45
    {
46
        return self::LASTNAME_PREFIXES;
47
    }
48
}
49