TBasicKeys::getBirthKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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