TKey   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 3 1
A setKey() 0 4 1
1
<?php
2
3
namespace kalanis\kw_forms\Controls;
4
5
6
trait TKey
7
{
8
    protected string $key = '';
9
10 81
    public function setKey(string $key): self
11
    {
12 81
        $this->key = $key;
13 81
        return $this;
14
    }
15
16 73
    public function getKey(): string
17
    {
18 73
        return $this->key;
19
    }
20
}
21