TKey::setKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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