TBasicKeys   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 45
ccs 18
cts 18
cp 1
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getNameKey() 0 3 1
A getSexKey() 0 3 1
A getSuccessesKey() 0 3 1
A getIdKey() 0 3 1
A getBirthKey() 0 3 1
A getDeathKey() 0 3 1
A getShortKey() 0 3 1
A getFamilyKey() 0 3 1
A getTextKey() 0 3 1
1
<?php
2
3
namespace kalanis\kw_pedigree\Storage;
4
5
6
/**
7
 * Trait TBasicKeys
8
 * @package kalanis\kw_pedigree\Storage
9
 * Basic keys as defined in records
10
 */
11
trait TBasicKeys
12
{
13 3
    public function getIdKey(): string
14
    {
15 3
        return 'id';
16
    }
17
18 3
    public function getShortKey(): string
19
    {
20 3
        return 'short';
21
    }
22
23 2
    public function getNameKey(): string
24
    {
25 2
        return 'name';
26
    }
27
28 2
    public function getFamilyKey(): string
29
    {
30 2
        return 'family';
31
    }
32
33 1
    public function getBirthKey(): string
34
    {
35 1
        return 'birth';
36
    }
37
38 1
    public function getDeathKey(): string
39
    {
40 1
        return 'death';
41
    }
42
43 1
    public function getSuccessesKey(): string
44
    {
45 1
        return 'successes';
46
    }
47
48 3
    public function getSexKey(): string
49
    {
50 3
        return 'sex';
51
    }
52
53 1
    public function getTextKey(): string
54
    {
55 1
        return 'text';
56
    }
57
}
58