Group   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 29
ccs 8
cts 8
cp 1
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

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