CharacterTransliteration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 35
c 1
b 0
f 0
dl 0
loc 38
ccs 35
cts 35
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 36 1
1
<?php
2
3
namespace kalanis\simple_vin\Datasources;
4
5
6
use ArrayObject;
7
8
9
/**
10
 * @extends ArrayObject<string|int, int>
11
 */
12
final class CharacterTransliteration extends ArrayObject
13
{
14 37
    public function __construct()
15
    {
16 37
        parent::__construct([
17 37
            'A' => 1,
18 37
            'B' => 2,
19 37
            'C' => 3,
20 37
            'D' => 4,
21 37
            'E' => 5,
22 37
            'F' => 6,
23 37
            'G' => 7,
24 37
            'H' => 8,
25 37
            'J' => 1,
26 37
            'K' => 2,
27 37
            'L' => 3,
28 37
            'M' => 4,
29 37
            'N' => 5,
30 37
            'P' => 7,
31 37
            'R' => 9,
32 37
            'S' => 2,
33 37
            'T' => 3,
34 37
            'U' => 4,
35 37
            'V' => 5,
36 37
            'W' => 6,
37 37
            'X' => 7,
38 37
            'Y' => 8,
39 37
            'Z' => 9,
40 37
            '1' => 1,
41 37
            '2' => 2,
42 37
            '3' => 3,
43 37
            '4' => 4,
44 37
            '5' => 5,
45 37
            '6' => 6,
46 37
            '7' => 7,
47 37
            '8' => 8,
48 37
            '9' => 9,
49 37
            '0' => 0,
50 37
        ]);
51
    }
52
}
53