Property   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 37
ccs 11
cts 11
cp 1
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getColumnKey() 0 3 1
A setData() 0 6 1
A getTableName() 0 3 1
A getColumnName() 0 3 1
1
<?php
2
3
namespace kalanis\kw_mapper\Storage\Shared\QueryBuilder;
4
5
6
class Property
7
{
8
    protected string $tableName = '';
9
    /** @var string|int */
10
    protected $columnName = '';
11
    protected string $columnKey = '';
12
13
    /**
14
     * @param string $tableName
15
     * @param string|int $columnName
16
     * @param string $columnKey
17
     * @return $this
18
     */
19 28
    public function setData(string $tableName, $columnName, string $columnKey): self
20
    {
21 28
        $this->tableName = $tableName;
22 28
        $this->columnName = $columnName;
23 28
        $this->columnKey = $columnKey;
24 28
        return $this;
25
    }
26
27 5
    public function getTableName(): string
28
    {
29 5
        return $this->tableName;
30
    }
31
32
    /**
33
     * @return string|int
34
     */
35 26
    public function getColumnName()
36
    {
37 26
        return $this->columnName;
38
    }
39
40 26
    public function getColumnKey(): string
41
    {
42 26
        return $this->columnKey;
43
    }
44
}
45